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.
I guess the time complexity is 5 * O(n)
Sloow!
Sorry. I didn't thought that I'd need to use the spoiler flag when commenting in the soulutions section.
This comment is hidden because it contains spoiler information about the solution
How could one know if
price_per_kg
should be infloat
. I finnaly gave up.What's printed in expected when running test cases in not accurate either.
This comment is hidden because it contains spoiler information about the solution
What's the point of decimal point in
1./
?Nice.
Good kata. I wonder which one is the better appraoch, using a
char
array, vsint or long
array to hold the digits?My code seems to return the expected results, but it fails with:
And for:
But I don't see any difference in the diff.
Finally done. Thanks to the author, learned a lot about primes.
This could only generate about 4 million.
This comment is hidden because it contains spoiler information about the solution
Java Translation
I solved this. But I'm not sure if I followed the best approach. Is this belong to any specific type of problems? Please let me know if there are any references that worth following.
Loading more items...