Ad
  • Custom User Avatar

    This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/177.
    Please join the discussion to help us identify duplicate kata and retire them.

  • Custom User Avatar

    It would be cool if the kata required the greatest product of n consecutive digits.

    The kata also needs randomized test cases, like it was mentioned before.

    The description needs to be a bit clearer. When we're looking for the greatest product of n consecutive digits, we first need to get all the possible n-digit numbers from the original number. For instance:

    '123834539327238239583' // => '12383', '23834', etc... (notice the overlap)