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.
забавно)
A good one if array size is small.
Nice) У меня по такой же логике
сортировка на регексах дороже, чем личный суперджет)
:D
the reference solution in JavaScript was incorrect (distance calculation was off by 1), it's fixed now
Test case with 13 dots between C and m:
From your description:
Why?
When a rabbit jumps for 6 cells he has no idea where the wall is, it is NOT MATTER, the matter is he jumps 6 cells. If there wasn't a wall he should land on 6th cell, but in your example he would land on 5th.
Nice one, a little bit harder than it seems at first sight!
hey!
yeah... my ASKII is kinda sucks. I'll check how to show it more clear.
But the position is drawn in a right way. Extend the drawing is not the same is bounce.
There is a part of Kata that tells, that the rabbit is always in the middle of the cell, and if Rabbit find himself right next to border with power of 1, then in next move he will be bounced back to the same cell; which in extend drawing logic will be one cell back more.
No worries :D I also made a mistake in this. Please check a comment from @Voile below.
This comment is hidden because it contains spoiler information about the solution
Nice one, thanks
Nice kata, took a while with different approaches, when finally could establish some pattern
в наборе из 6 чисел может получиться 0, а числа 49 наоборот никогда не будет
О, тоже использовал 61, 60, 51 и т.д. систему только по другому посчитанную)
Loading more items...