News for hackers. Stuff that matters.
Re:A Brutal Look at Balanced Parentheses, Computing Machines... by UncleEntity on Friday February 22, 2019 @05:08PM (#19229597)
> This isn't that hard of a problem, and if an interview candidate couldn't come up with a basic solution like this, I'd very much like to know that.

   def is_balanced_parens(s):
       return s.count('(') == s.count(')')
Think I'd fail the interview test...
Re:A Brutal Look at Balanced Parentheses, Computing Machines... by Anon84 on Friday February 22, 2019 @05:55PM (#19229901)
So you claim that ")(" is balanced?