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.
I'm having the same issue where I feel the instructions aren't well clarified (I wrote a separate comment about it above). Could you help define it? I'm confused as to why "([{}])" would return true but "[(])" would return false
You could also inductively define valid strings like so:
""
)"()"
y:"[]"
xy:"()[]"
)"()[]"
also valid:"(()[])"
,"[()[]]"
,"{()[]}"
)This matches the current requirements while also being precise.
Way too loosly defined in my eyes.
There could be clear rules for the validity of scoping braces:
This would produce clearer rules and less ambiguity for the kata.
But the current examples are different: "(){}[]" => true
Still the solutions are somewhat taking order of scopes into account, which isnt mentioned in the instructions
so many options for nice pattern matching in haskell but some ppl just want to stick with regrets
This comment is hidden because it contains spoiler information about the solution