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.
The provided test cases include the first terms, and oeis.org (and I assume Wolfram Alpha) have a search engine that allow you to find sequences of numbers by entering a part of that sequence
Then, sift through what comes up, implement the
formula
, and voilĂ .Granted, the challenge becomes less coding than knowing where to look for the answer. But that's fun in its own right too
This comment is hidden because it contains spoiler information about the solution
1 rotation to the left === (s.length-1) rotations to the right though..
I feel like the precision in the kata description was more of a context clue, to not get devs confused as to what exactly the author was referring to with the word 'rotation'
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
hint for anyone trying this kata even if the description says not to (in JS at least):
"Person" is misleading in the way it has been capitalized..
once you get past that, the kata is still 8kyu, even when working the solution back from the tests results
I hope that this is not too much of a spoiler, since the description gives nothing, i figured a little hint would be nice.
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
oops, sorry about that. I'll be more cautious next time
This comment is hidden because it contains spoiler information about the solution
Absolute Genius.
Comparing that with my solution, especially knowing that this was a 7kyu kata, makes me seriously doubt my own rank :'D
Made me learn about \b though, i guess i would have come up with something prettier if i knew about it ..?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution