Ad
  • Default User Avatar

    The length does not always starts at 1.
    It could for example be this:
    [2,2],[8,8,8,8],[9,9,9,9,9]

    Your code would answer 1. But the correct answer would be 3!