I have made this code.
http://pastebin.com/PD0JPeDf
Problem Link : http://www.facebook....185564241586420
I am bit confused about the problem and that is
They said
A message has balanced parentheses if it consists of one of the following:
- An empty string ""
- One or more of the following characters: 'a' to 'z', ' ' (a space) or ':' (a colon)
- An open parenthesis '(', followed by a message with balanced parentheses, followed by a close parenthesis ')'.
- A message with balanced parentheses followed by another message with balanced parentheses.
- A smiley face "
SO if any of those statement is true, It will be balanced.
But they said

New Topic/Question
This topic is locked



MultiQuote






|