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.
this solution doesn't work for this case
returnAscending(1,2,3,10,50)
// '11023450'
I got an error that expected 'good luck' be returned. How does this account for that?
Function should take one number.
Very cool and interesting kata, both in terms of implementation and in terms of plot
I hope doc will finish with "Gold Rush Race" kata too...
I'am not understand how it's work.
In test examples present 55, and I should return 55.
But in final tests present 66 and 55 too. And there I should return 12 and 10 appropriate. How ?
brainstorming kata...
and really not 6, 5 as min
Well, I was also confused by this. And after seeing your question, I was aware of my mistake.
As English is not my mother tongue, I do not understand the exact meaning of 'toroidal' and 'wrapping'. After consulting the dictionary, I find out that it means something like 'cycle'. If we are at the top of the grid and go further north, we will be at the bottom in the next iteration. And now everything is right for us...
Thank you!
Please describe how it should be work ?
We have the follow:
3 moves to right (e - Move data pointer east (right));
3 moves to down (s - Move data pointer south (down));
7 moves to left (w - Move data pointer west (left));
Looks like this doesn't make sense. Because we are will in position -4.
Hi, I have the follow issues in random tests:
I think this bug similar as was for isSet() function
This is a O(n^3) solution (for each boss (n), splice the array (n) at the indexOf (n)
curRobot
).Also it mutates the original input with
splice
.This comment is hidden because it contains spoiler information about the solution