← Questions
Longest straight run of one color in a grid
0
I was asked this
No reports yet. Sign in to say where you were asked it.
Given a grid of colors such as R, G and B, return the length of the longest line of cells with the same color, running horizontally, vertically or diagonally.
No official answer yet. Write yours on the right and run it.
Nothing published yet.
Write and test your solution herePython in your browser, the question's tests level by level, saved for you.Sign in to start coding
