3 ms·
> 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
by UncleEntity 8y ago
> 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...
- deleted 8y ago[deleted]
- Anon84 8y agoSo you claim that ")(" is balanced?