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:
/* (display next text as right to left) */ def greet = "hello world!"
Why then the compiler does not complain? Because it is in the comment section.
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?
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