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.
Pass the test but don't know the whole process because the perloaded code really makes me confused...
Pass the sample tests again but still crash when clicking the ATTEMPT
Wonder why...lol
It would be great if someone tells me what should I learn first to solve this Kata...
I used to solve a similar problem which the number is 3, but the method doesn't work since the nested can be too complex.
This comment is hidden because it contains spoiler information about the solution
Thanks.
Maybe all puzzled people should take a look at this dialogue and then will understand the order better: "from right to left, top to bottom".
For example, I set the order "from top to bottom, right to left" first and obviously confused for two hours...what a sad story!
Still get timeout in this Kata, this time I use A*.
Mayba I should think about my code struct deeply...
sad story
Time out when the array grows up to about 90*90, breadthfirst and greedfirst have been used.
Does it mean I have chosen the wrong algorithm or just because my code is inefficient?
The feeling is hard to describe when I always see the timeout on Codewars.com...OAQ
Maybe [Digital Angle Sensor] helps to understand for the people who have used it before.
Hope this will not directly exposed to the answer, anyway, enjoy the Kata!