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.
it means your codes slow. Try optimising your solution :)
the requirements are quite straight forward and also just because you could not do it does not mean the instructions are not clear
thanks for this lovely kata @g964 i have been doing your katas for some time now and they all are great :P
This comment is hidden because it contains spoiler information about the solution
O(n) for such a simple kata?!!
this has to be the easiest 4 kyu kata in this website :)
requires math a brute force solution will not work :)
The solution is too slow for very large numbers.
Try optimising your solution (you don't have to loop all the way up to n)
print the input
Just print the input : )
paste your code (with spoiler flag)
exact copy of my solution!
.
This comment is hidden because it contains spoiler information about the solution
who asked?
Loading more items...