(JS) I found a way to find the amount of trailing zeros, but apparently the test cases are huge. Basic tests were barely passed in 8.8s, with many more random tests completely timing the code out.
I think this would have been less frustrating if the tests could return the shorter ones before failing the longest. I had to short circuit my function above a certain size to keep verifying that my logic was sound while I tried to optimize further.
This comment is hidden because it contains spoiler information about the solution
(JS) I found a way to find the amount of trailing zeros, but apparently the test cases are huge. Basic tests were barely passed in 8.8s, with many more random tests completely timing the code out.
Now what?
This comment is hidden because it contains spoiler information about the solution
LISP translation available. Please review and approve.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
php translation kumited
This comment is hidden because it contains spoiler information about the solution
No random tests in Python, JS, Ruby, Java. Clojure was approved without random tests (and probably never fixed).
Random tests should be added to all language versions.
This comment is hidden because it contains spoiler information about the solution
I think this would have been less frustrating if the tests could return the shorter ones before failing the longest. I had to short circuit my function above a certain size to keep verifying that my logic was sound while I tried to optimize further.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Loading more items...