DEV Community

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

Collapse
akhilpokle profile image
Akhil Author

Test it here: leetcode.com/problems/valid-parent...

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 !

Collapse
namhle profile image
Nam Hoang Le • Edited on

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