Quick Overview

Find the longest straight run of equal-colored cells across horizontal, vertical, and both diagonal directions in a rectangular grid.

Find the Longest Straight Run of One Color

Company: Google

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: hard

Interview Round: Technical Screen

Overview: Find the longest straight run of equal-colored cells across horizontal, vertical, and both diagonal directions in a rectangular grid.

Loading…