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.
You're still using
<pre><code>
. That can be replaced with triple backticks like so:Can you explain why you use a list, not an array? The suggestion was to keep array, only change the generic parameter type from string to BigInteger. A list is a mutable object. This kata does not require any mutation of the collection. So why did you go from array to list?
that last statement is now outdated
from description:
yet, the input is a
List
, not array.Note: I've no idea why you use a list over an array ...
Why did you solve the issue? I will create a new one.
Thank you. Can you check it ?
yeah I guess you're right, only the description should be changed to BigInteger instead of string.
I am not sure here. If I read the task correctly, the result is a sum of digits, and it should be difficult to have a sum of digits to exceed
int
?then change return type to BigInteger as well, or not?
Change from string to biginteger was per my suggestion below, which I made because I did not understand what's the point of having inputs as long strings of numbers. The strings also caused a lot of ugly code in tests.
I also don't understand why you changed from string to BigInteger. What's the purpose? And why is the return type an int, not BigInteger as well?
Description does not fit new argument type.
@AtoG can you check it ?
Failure message in Sample Tests