News for hackers. Stuff that matters.
Re:A Brutal Look at Balanced Parentheses, Computing Machines... by deathanatos on Friday February 22, 2019 @06:45PM (#19230277)
I think your parent's solution simply considers the empty string not part of the language. The article thinks it is. It's a trivial adjustment to the solution to include it.
Re:A Brutal Look at Balanced Parentheses, Computing Machines... by bboreham on Saturday February 23, 2019 @03:07AM (#19232306)
Consider the context: parent is talking about how easy the problem is to solve in an interview.

Coding interviews serve to check _how_ a candidate goes about solving a problem - if they submit without checking the solution meets the spec, or choose to solve a different problem without mentioning it up front, then this tells me plenty about their working style.