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.
Your code will fail with nested loops. You need to find a more efficient way to compute the answer. Nobody should give you any formula, that would be giving the solution.
@RevelcoS do we need to add loop inside another loop? This solution doesn't work for numbers >10^6. May be one loop? In this case I can't create a solution
This kata can be solved without applying special formulas from Numberphile video. It is just for educational purposes. Try to come up with something "easier"
can you explain me please, what is the formula? If we don't need special even numbers handler, I have just
return Number.isInteger((num - 1) / 4);
and it's doesn't workEven numbers do not need special handling.
COBOL translation.
Thank you!
(message deleted cause I'm not sure it's right...)
Thanks :)
Hi!
I can't solve this cata bacause of "Execution Timed Out".
Give me an advice please, how to handle even numbers? Should I decompose even numbers to prime factors? I saw Numberphile's video, but didn't get it.
Thanks
hahah and i think why pop and shift doesnt work :D
Tell me please, how to solve this kata without prototypes? Using only classes.
Why do you write 'arr' in arguments of function when It's a string?!
Worst kata ever.
I thing, you should add tag 'Object-oriented Programming' to this kata
Loading more items...