4 ms·
Grrr, that's not a Regular expression at all. I think you'd be better off looping over the string and counting the number of ( and )s in a loop, guaranteed lin
by Tyr42 11y ago
Grrr, that's not a Regular expression at all. I think you'd be better off looping over the string and counting the number of ( and )s in a loop, guaranteed linear time.
I wish people would stop abusing regular expressions.
- GFK_of_xmaspast 11y agoA regex is far more useful than a regular expression, and I'm ok with the terms getting conflated.