You are viewing a single comment's thread. Return to all 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
Seems like cookies are disabled on this browser, please enable them to open this website
Printing Pattern Using Loops
You are viewing a single comment's thread. Return to all 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