You are viewing a single comment's thread. Return to all comments →
I thought this would be a cake walk. Just implement a tail recursive function and call it on N.
My function is fine. It works. The answers are right.
BUT THE TESTS FAIL because JS has precision limits and returns answers in Scientific Notation!