Candy Crush Grid Matching and Gravity

You are given an m x n grid of non-negative integers. A positive value represents a candy type, and 0 represents an empty cell. A match is any horizontal or vertical run of at least three adjacent cells with the same positive value.

Check more interview questions and experiences about Roblox

Please log in to view interview question details