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.
Nice and readable. Well done.
e is a math constant, Euler's number (2,72)
What would you name it instead? I came up with the same solution, but used "item" instead of "e." (Also - how would you use "e" as a number in math? - You got me all curious now!)
I solved the problem in the same way, but
if the array has a value of 0 , the function will return -0
In Math "e" is a number, not sure if is a good idea to name it with "e", but your solution is great!
I am Dinglemouse.
All my Kata are here: https://www.codewars.com/collections/dinglemouse
I did this Kata and was a GREAT exercise of methods for me!! In my Browser runs good, but everytime I submit it in the codewars editor it tells me .split('') its not a function like the parameter "lines" its not a string inside that array. But I dont care, so I dont worry about it, its maybe something Im not seeing just because my level maybe its not that high and Im just a Junior. But I appreciate SO MUCH !! the work made me do, that Im following this guy and doing more of his Katas for Sure. Whoever you are THANK YOUU!
Read again the text of the problem, second rotor goes 13 positions after did 1 along with the first rotor, and the 3rd rotor goes 27 positions after doing 14, 13 along with the second rotor and 1 with first and second rotors
that's because short code its over rated.. codewars its a short code contest...
short code its not always the best code, almost always, but not always
This comment is hidden because it contains spoiler information about the solution