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.
Java translation(author inactive)
Returning values of different data types is a bad design.
Calculating the product of integers in range
(a; b)
is the same as calculating the product of integers in range[a; b]
.This should be an issue.
And another problem is I always failed at the big number
For some range of numbers (e.g.
[9,26]
), there is a rounding issue that makes my code fail.Expected: 42744736671436790000, instead got: 42744736671436800000
Here's part of my solution: