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!
re-raised to specify all languages
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 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.
Snake doesn't move when changing its direction. It seems this information was removed from the description during the rewrite.
Directions certainly changed but the snake didn't move...
(U doesn't mean the snake moves Up one step)
Yes, this kata makes no sense without random tests 🤷♂️
It's faster to not replace at all but to just look for occurences but this would take more characters in code ;-)
Hi, thanks for feedback. I've changed the description. Please check if it's OK. Thanks, suic
Thanks. Edited as you suggested.
dont write a spoiler here .....
Duplicate issue. Switch to node 8 until it's resolved.
Also, your code is wrong, read the task again :P (check what you should return)
Loading more items...