Ad
  • Custom User Avatar

    You need a different approach. Just converting it to number and adding 1 will result in precision errors with larger arrays. Try working only with the array itself.

  • Custom User Avatar

    Execution Timed Out (12000 ms)

    Because it's too slow. Not a kata issue.