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
It was more a case of needing to read the instructions 4 or 5 times, and then 2 or 3 times more after my code was written, to work out the bugs. Partly my fault, and partly just down to the concept of the kata, which is not easy to describe succinctly.
For what it's worth, here's a rewrite of the instructions.
I don't know if it will seem clearer or not. Since we have both understood the mechanism of the kata we are maybe not in the best position to judge that.
This seems rather simple for 5 kyu?
Where is the problem? "remaining elements" is normal english. What did you not understand?
A little bit unfair to give a negative voting, only because you didn't understand the description at once. :-(
If you have hints and ideas for improving the description, it would be more constructive! :-)
More challenging to understand the instructions (what is meant by "remaining elements", and <3 / >2 confusion) than to code to the instructions.
Nice kata, thanx :)
It wasn't really clear to me, that you only unflatten sub-arrays if you meet them in the array, not if they are "taken". You might want to clarify that - or maybe I'm just slow. (Makes nicer code that you don't have to, anyway - so that's nice ;) )
Your solution is very short, well done!
I too had made a brute force for the 4x4. Which I generalized, and then thought I could use for this one. Well, that was going to take a while... So I optimized, and could easily solve the first example. But the next ones, not so much.
So back to the old drawing board - but that was just so much more satisfying when I found a clean way to do it.
Yes, I really liked this one. Good job. Even if I thought it was going to be a piece of cake after the 4x4, and wasn't :)