tag:blogger.com,1999:blog-7394321342583943115.post2427018665643631398..comments2023-07-19T23:10:12.122-07:00Comments on Geek: Facebook Hacker Cup 2013 Qualification Round: Balanced SnileysVikashhttp://www.blogger.com/profile/11059616688071310835noreply@blogger.comBlogger7125tag:blogger.com,1999:blog-7394321342583943115.post-34278467798492376202013-01-27T21:03:21.742-08:002013-01-27T21:03:21.742-08:00The above program doesnt report the correct output...The above program doesnt report the correct output for "(()):):)"saiKumarAravahttps://www.blogger.com/profile/14157327619399413115noreply@blogger.comtag:blogger.com,1999:blog-7394321342583943115.post-33290783201054839502013-01-27T20:35:30.557-08:002013-01-27T20:35:30.557-08:00But your program prints "NO" when it sho...But your program prints "NO" when it should be "YES". Am I correct?ed1d1a8dhttps://www.blogger.com/profile/04196760885058730880noreply@blogger.comtag:blogger.com,1999:blog-7394321342583943115.post-58173914010807370492013-01-27T20:01:34.420-08:002013-01-27T20:01:34.420-08:00@Tonynater, in this case you can not take middle :...@Tonynater, in this case you can not take middle :( as smiley, you have to first check for the balanced parenthesis and then for smileys. If you have a string consisting of colon and parenthesis then you have to first check out for parenthesis and not smileys as you can see the last condition for balanced smileys.Vikashhttps://www.blogger.com/profile/11059616688071310835noreply@blogger.comtag:blogger.com,1999:blog-7394321342583943115.post-79338153728167112112013-01-27T18:41:03.991-08:002013-01-27T18:41:03.991-08:00Sorry for the bad news, but this case breaks your ...Sorry for the bad news, but this case breaks your program: () :( ()<br /><br />If we consider the middle smiley face as a "real" smiley, then it would be balanced. Sorry again, better luck next time.ed1d1a8dhttps://www.blogger.com/profile/04196760885058730880noreply@blogger.comtag:blogger.com,1999:blog-7394321342583943115.post-24523043070526137112013-01-27T13:38:16.647-08:002013-01-27T13:38:16.647-08:00coool! running your code give as result: "Cas...coool! running your code give as result: "Case #1: NO"Anonymoushttps://www.blogger.com/profile/16920383154374362726noreply@blogger.comtag:blogger.com,1999:blog-7394321342583943115.post-70397042653841896732013-01-27T13:31:47.195-08:002013-01-27T13:31:47.195-08:00yeah ofcourse, A message with balanced parentheses...yeah ofcourse, A message with balanced parentheses followed by another message with balanced parentheses is balanced... :DVikashhttps://www.blogger.com/profile/11059616688071310835noreply@blogger.comtag:blogger.com,1999:blog-7394321342583943115.post-4399721455641722772013-01-27T13:22:48.253-08:002013-01-27T13:22:48.253-08:00is this message '(first) (second)' had bal...is this message '(first) (second)' had balanced parentheses?Anonymoushttps://www.blogger.com/profile/16920383154374362726noreply@blogger.com