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.
cool!
This comment is hidden because it contains spoiler information about the solution
Why my answer with n1011121314151617123456789\n0111213141516171234567891 is wrong and test case \n1011121314151617123456789\n1112131415161712345678910 is right?
You should check for other input types too.
Also, your code will fail for
16
(Power of 4) becauseMath.sqrt(Math.sqrt(16))
-->Math.sqrt(4)
-->2
, but2
is not divisible by 4.Clever solutions, I don't think in this solutions until I see.
First of all, WHY Strings and not just numbers? For a 7 KYU this constraint just causes way too much problems with padding 0's at the end (At least when working in Haskell).
Second of all, the rounding and float imprecision cause additional problems. I have 5/10 Tests passed, with two tests not passed because of the missing end zero and the other because of some weird imprecision (eg. I get 2.39, actual should be 2.40 or 2.38).
Approved
The hardest part of the task is getting your ready-made task to work in CodeWars
Lua translation
This kata is 9 years old, quality reviewing in the beta was not strong at the time.
I tried to be more mathematically exact in the description. Could you please check if it is more clear now or suggest some further improvements?
It is part of the challenge to figure out the rule.
This comment is hidden because it contains spoiler information about the solution
isn't it an efficient way to store the sqrt result in a variable rather than doing it twice?
The question is poorly written.
It's unclear what the "parameter" is.
Is it 10 (the "nth" term)
or a series(unspecified)
or the series given as an example
or something else?
Please have someone review your kata before it's published.
PLEASE!
The description is rather confusing - it would be nice if the sequence was defined other than the example.
Loading more items...