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
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
If that's the case, lazy me just wants to then wrap this in an
ArrayList
and proceed as I did.This comment is hidden because it contains spoiler information about the solution
Yep, sorry! Fixed it.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I'm a patient man.
Hi humble,
I had the same problem for a while. I just came back to the problem and solved it and naturally now I'm having trouble reproducing the rounding errors. Can you show how you are attempting to solve the kata and I'll see if I can spot what's going on?
No worries. Many thanks for addressing the problem!
Having some issues with the Java translation of this kata. Some of the submission test are expecting negative totals, which by my understanding shouldn't be possible. The product should always be >= the lcm, so product - lcm should always be >= 0. The sum of these differences should also then be >= 0.
For the test case:
I checked the results in Excel got 36541296948 for this input.
I also got some results that didn't match positive expected results:
For the test case:
0 + 0 + 20669376 + 8450958230 = 847162760, which is the answer I got.
Am I misunderstanding the kata? Or is there some issue with the way the official solution is coming up with results?
Thanks for your time.
Awesome, thanks for the speedy reply!
Loading more items...