Algorithm · Roblox · Medium
You are given a grid with m rows and n columns whose cells hold positive integers. Call any unbroken stretch of three or more identical values lying along a single row or a single column a match. Part 1: Find all matches Produce a list containing [value, length] for each match, following these rules: List the horizontal matches before anything else: go through the rows from top to bottom, and within each row move left to right. After that, list the vertical matches: go…