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.
This comment is hidden because it contains spoiler information about the solution
Hi,
Considering the shape you were talking about, your function should return these three:
It matches the description:
If you encounter imbricated pieces, both outer and inner shapes have to be returned.
so I'm not sure I'll add anything to it unless you can precise what is lacking or why (I need enlightenment here). What were the other possibilities you thought where matching, exactly?It seems you began the hard way, yeah. I created it that way and went almost crazy with the
+ => -|
thing too... ;) I believed I had found a 1 dan kata, actually. Until lechevalier came by and show me the right way to solve it (you can take a look at my python solution if you want to see the evil way).More sample tests: that's doable. I'll think about some of them (but not from the random ones).
cheers
This comment is hidden because it contains spoiler information about the solution
Approved
Thanks a lot! Glad you liked it. :)
Thank you Blind4Basics,
I had a great 3 days with this! You must have had a hell of a time inventing this thing though! I think it's brilliant.