Squares interview question
Given coordinates of a cell in a grid of coloured squares, tell how many contiguous squares are the same color (starting from that square).
Given coordinates of a cell in a grid of coloured squares, tell how many contiguous squares are the same color (starting from that square).
Python
Given coordinates of a cell in a grid of coloured squares, tell how many contiguous squares are the same color (starting from that square).