Sometimes it's possible to pass through all the tests even with a incorrect solution. I'm taking about this edge case:
"There may be more than one answer, i.e. two or more integers produce the longest Collatz sequence, because they happen to have sequences of the same length. In this case, your function should return the integer that appears first in the array."
Sometimes it's possible to pass through all the tests even with a incorrect solution. I'm taking about this edge case:
"There may be more than one answer, i.e. two or more integers produce the longest Collatz sequence, because they happen to have sequences of the same length. In this case, your function should return the integer that appears first in the array."
Haskell translation
Enabled in this fork
Prolog translation
Done in latest fork
Approved
python new test framework is required. updated in this fork
Ruby 3.0 should be enabled (Refer this & this for more detail)
Python new test framework should be used (Refer this & this for more detail)
Not anymore, but it was due to your code mutating the input. Read this: https://docs.codewars.com/training/troubleshooting#works-but-no
Problems with random test. When try it manualy all works. Maybe some sort of mistake
You were modifying your input weren't you?
All random tests(JS) show: Expected 1. Which cannot be considered as right answer with given arrays.
Maybe this is broken?
And as Jake just approved the Ruby translation, who am I to pass on the chance to make a Crystal one? Because I do also statically typed now, ah!
Fixed, thanks for the feed :)
Loading more items...