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.
@Roots2D:
symbols.key(c) ensures that value 'c' has a proper matching key (an opening parenthesis).
If it did have a proper opening parentheses, then symbols.key(c) would return true.
If we didn't have it, then the block would return false if 'c' is anything other than an opening parenthesis.
Hope this helps
Let me know if you have any other questions
what is the significance of (if symbols.key(c) && symbols.key(c) != stack.pop) compared to (if symbols.key(c) != stack.pop)?
thank you el cortez! i wish every questions had an explanation.
This comment is hidden because it contains spoiler information about the solution