Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
The most readable solution, I think. Easy to read, easy to maintain and extend.
nice catch thanks!!
Except some moments ('return stack.length > 0? false: true;' can be replaced by just 'return stack.length > 0;') it's a good solution usefull in real life - you parse a string despite it does contain other symbols or not.
poor real task efficiency... Only braces/parenthesis containing strings are relevant, however the objective is reached
The code is rather readable and completely satisfies the objective, but... it's not useful practically. Just send '(someText)' string as an argument and the function fails. I don't think that you would really face a task with parsing a string with only braces, parenthesis and brackets. So, it's a clever solution, but not a best practice at all.