Printing Pattern Using Loops

  • + 3 comments

    I'm surprised this passes all the tests since it fails against this custom input:

    9

    4 5 6 3 3 1 6 6 6

    The array [4,5,6,6,6,6] is of length 6 but this solution returns 5