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.
Thank you cosmoskey, you can even join the map and joinToString together
This comment is hidden because it contains spoiler information about the solution
I guess the type of
n
should be changed tolong
to fulfill1 ≤ n ≤ 10000000000
. Sinceint
can only hold values up to 2147483647.Also method names starting with an uppercase letter is unusual. I propose to change it to the following for Java
Another point is that you actually access static methods in Java without an instance of
Line
. You would also have to change the type ofn
if you apply my suggestion from above.