In the lecture, I thought the image array had to be flattened such that all the reds, greens and blue values would be listed together, e.g. [r1, r2, r3, g1, g2, g3, b1, b2, b3].
However in the implementation (as well as the passed test using two colors), the flattened array appears to be [r1, g1, r2, g2 β¦]

