Ad
  • Custom User Avatar

    Not a kata issue, your code does not comply to below

    Note: if multiple products have the same revenue, order them according to their original positions in the input list.

  • Custom User Avatar

    Your problem is javascript doesn't handle arbitrary precission numbers like you want. Try doing it another way.

  • Custom User Avatar

    From the Kata's description:

    a string of space separated numbers

    Your code is expecting a comma separated list.
    Please double check your test input in your test code and look at the examples in the Kata's description.

  • Custom User Avatar

    The input is a string of numbers separated with spaces, check how you're trying to convert that to a list, it's wrong. And if your code works in other places, you're not using those input values.

  • Custom User Avatar

    > Input: "10 2 -2 -10"
    > Your code: split(',')

    :thinking: