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 saw the solution, it has no much to do with programming. I think this Kata is very bad designed. :(
so no guard for num < 0, what happens if num < 0.
very nice solution. absolute beautiful.
Where is matches come from?
This comment is hidden because it contains spoiler information about the solution
solution by GPT-4
code generated by GPT-4
I have the same question and also diag1Sym, where is it from ?
print($0,$1) is redundance, but the program will run outof time without that statement. Strange!
nice work, very smart :)
This implementation is very smart, but the search for valid movment section has major flaw. It will fail carefully designed mazes such as the one I give below:
"+--+\n"
+"|R |\n"
+"| r|\n"
+"|**|\n"
+"|Gg|\n"
+"|Yy|\n"
+"+--+"
Very nice kata. My first solution only be able to solve some very simple situation. And then I start to improve my algorith. However, reach to a speed bottleneck totally have no idea to go through. After some meditation, suddently got an idea. It make me able to pass close 80 out of 106 test cases. Still not enough. Then another round of meditation, and then a new idea. After fixing some bugs(my code is really ugly), finally,passed. So difficult, but very rewarding kata.