DEV Community

Discussion on: A Tale of Two Functions

Collapse
 
thejoezack profile image
Joe Zack

I've done the ol' parenthesis match problem with a stack before, and I even remembered that problem when I saw this: "Oh hey, this looks like that one problem I solved with a stack. I should arbitrarily use a linked list here!"

The linked list turned out ok, but I could have saved a couple lines and had a much more coherent solution if I used the stack.

Ah well, c'est la vie.