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.
This comment is hidden because it contains spoiler information about the solution
public long numberOfDivisors(int n)
n is int, but method returns long.
Great kata. At first moment it's just WTF?!, then you start to google and learn some new things.
This comment is hidden because it contains spoiler information about the solution
It's just simillar to http://www.codewars.com/kata/56cafdabc8cfcc3ad4000a2b
True, still it was fun.
Haha, I have to scratch mine from walls;)
I had the same problem. I commented my System.out.print() (debug purpose) and heap space issue was fixed.