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
Am I doing something wrong or are we restricted to using only BigInteger?
Seems like Scala version also has this bug.
In the first comment there is a hidden Right-To-Left override character. So all following text will be interpreted as right to left. Try to select the text in the solution and you will see how selection behaves differently from normal. So for the computer it looks like this:
Why then the compiler does not complain? Because it is in the comment section.
There are no errors in the kata. Print the input to see where your problem is.
I am confused.
Language: Scala
And I don't use
reduceLeft inside my code
.Random test is green. Basic test too.
I always like reading code with streams, though am still not used to them. Can you explain why creating n double arrays is faster than using a for loop?
Too slow