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 clever monoidal construction.
I do notice that it is inclusive w/r/t non-
(
/)
characters, e.g.whereas other peoples' solutions may have returned
False
due to theh
. But I don't think the instructions were clear on what to do with those.You're right,
parse
is only a partial function.I had the same idea! You can abstract a little bit upwards if you want to leverage monoids, but the idea is exactly what I was going for.
still O(n) tho
This comment is hidden because it contains spoiler information about the solution