Ad
  • Custom User Avatar

    Well, my code runs out of memory on 1000000000!
    FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory

  • Custom User Avatar

    Thank you AcesofGlory, I will have another go!

  • Custom User Avatar

    n=1000000000 in one of the tests. Calculating the factorial of this number will take an incredible amount of time no matter how fast your computer is. This means this isn't possible to calculate it - try another approach without trying to calcuate the factorial. Hint: try to find a pattern between each factorial.

    Also, can you mark this issue as "resolved" by replying to this comment and ticking the box (since there isn't an issue with the Kata).

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution