Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

((What happens) if you are missing a close paren?


As an interviewer, my company allows the person to pick the language of their choice. At that point, you could just write it in psuedocode if it came down to it, and if you actually knew what you were talking about it doesn’t matter all that much. It’s not like I know the in and outs of every single language people have answered the question in.

In an era where linters and autocomplete and IDEs have existed for decades it’s silly to fail an interview based on tiny error checks.


the formatting was funky when i first looked at this, i can see it's returning a boolean now, that covers the case of count > 0




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: