For input like [1, 1, 1, 1, 1], the expected output is 0 1 2 3. Why is 0 1 1 2 no


#1

For input like [1, 1, 1, 1, 1], the expected output is 0 1 2 3.
Why is 0 1 1 2 not a valid output?


#2

because B!=C see the stmt