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.
Duplicate issue.
Not a kata issue.
Complete agreement. I decided. Using the debug all turns out, but tests are not the same. And I do not understand the example in the description. Why did you move 5 and 9?
.
done.
.toFixed(2)
will always round 1.555 to 1.56.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I have had one too many sleepless nights trying to solve g964's various mathematical riddles.
When you start one of his challenges, you'd better have lots of free time in your disposal.
Having said that, I tend to agree that this kata is just a bit too much for a 7kyu.
You don't need to convert numbers. You can also do it with integer modulo and division (although that's a bit more tedious to write). And you don't need to keep any lists, sorting, etc. Just keep track of the largest number as you do each rotation step.
It is nice but mine is faster ;)
You can usually find a faster solution than the terse ones, plus I understand them better.
Some of the regex ones are crazy fast though, but some are slow (and I only js in the browser, so this environment is another variable, for me anyway)
This comment is hidden because it contains spoiler information about the solution
This solution is my own writing, thank you for your feedback
Loading more items...