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.
Very nice! Can you tell what is the idea behind of {'(', '{', '['} being vector and not set? Also, do we need the last check
if (c == s.top())
or we can simply pop at that stage?The regex should have
[1-9]?[0-9]
instead[0-9]{1,2}
to deal with01.02.03.04
for
123.45.67.89.000.000.000
it returnstrue
There should be test for something like
123.45.67.89.abc
or123.45.67.89.001
otherwise this code passes+()
here is superfluousYou don't need the first plus, as the first argument is number.
And without it you can make everything symmetrically cooler =)
(b,d) -> b+ +d