• + 16 comments

    I thought this would be a cake walk. Just implement a tail recursive function and call it on N.

    ...then I realized I was trying to do this in JavaScript.

    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!