DEV Community

Discussion on: Valid parentheses, solving a Facebook interview question.

akhilpokle profile image
Akhil Author

Test it here:

As far as I know, the regex will manipulate string and string manipulation is a bit time consuming heavy in javascript.

But smart and concise code though !

namhle profile image
Nam Hoang Le • Edited on

It’s true. C/C++ can solve it in almost 0ms.