Ad
  • Custom User Avatar

    Needs performance tag. Needs clarification that every second person is to be unsurvived ( do not rely on examples - specify such things ).

    With the performance requirement, it might have a place next to Giacomo's kata that is bloody linked from the "similar kata" under the description, but the performance requirement has to be clear. ( adding explicit text to the description would be preferable to just a tag! )

    As said elsewhere, you're overflowing native Numbers. You could rectify this by supporting Node 10.x ( which you really should anyway ) and using BigInts.

    But without random tests, you're headed for retirement mighty quick. Did you read the documentation on creating your first kata?

  • Custom User Avatar

    Needs random tests.

  • Custom User Avatar

    One of the test case has expected result 5534023222112866000, which is past the safe integer limit and so is suspected to floating point errors.

  • Custom User Avatar

    Initial code has the wrong function name.

  • Custom User Avatar

    Duplicate.