Find Maximum Connected Colors (Values) in a 2D Grid using DFS or BFS Algorithm
Given a 2D Grid with integer values representing the colours, you are asked (in an interview probably) to find out the maximum connected colour sizes. A colour is connected …