Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
stellalo
4 months ago
|
parent
|
context
|
favorite
| on:
A Brutal Look at Balanced Parentheses, Computing M...
you also need check_if_negative to detect close-before-open
jibal
4 months ago
[–]
The counter is at 0, which indicates an error ... that plus the counter being non-zero when reaching the end of input is the entire point.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: