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.
Thank you! I've used it for perfomance purpose) It helped me!
wth is this
Very clean.
re-raised to specify all languages
This comment is hidden because it contains spoiler information about the solution
any user doing this will lose points, getting his solution flagged as cheat. Not a kata issue (but if someone find a way to circumvent this, he can post a fork with it and drop the link in the discourse)
Random tests only generate 90 degrees rotations.
This is realy confusing formulation.
If UDLR is just head rotation, without movements, than snake can rotate head to his neck and collide himself on next movement.
I know what you mean, but it then becomes all the more important to reduce the problem to it's core issues before assuming any given solution path. This one is absolutely not about path finding at all (the path is part of the input).
It's a first impression. ;-)
I find the 'find your way in a 2D-array' challenges usually quite tedious to code.
Not really difficult, per se, but prone to bugs. At least for me.
Are you referring to the requirements to solve it? Then I disagree. It can be done in 20-30 LoC. In fact I got smacked over the head because I rated it a 6kyu kata :D
This was my bad for reading the description poorly. I thought that U U U was identical to U 3 - not the case.
Thanks guys! appreciate it!
I was struggling with this too and then I figured out that when there's no number with the direction is considered as a head turn without movement, so you don't have to count the step.
Loading more items...