Find and Count Maximum-Score Grid Paths

Read the full interview experience this question came from →

Quick Overview

Find the maximum-scoring path from a fixed top-row cell to the last row of a grid using diagonal, downward, and limited two-row jump moves. Return the score, number of optimal paths modulo the limit, and lexicographically smallest optimal coordinate sequence.

Find and Count Maximum-Score Grid Paths

Company: OpenAI

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

Overview: Find the maximum-scoring path from a fixed top-row cell to the last row of a grid using diagonal, downward, and limited two-row jump moves. Return the score, number of optimal paths modulo the limit, and lexicographically smallest optimal coordinate sequence.

Read the full OpenAI Software Engineer interview experience this question came from

|Home/Coding & Algorithms/OpenAI
OpenAI logo
OpenAI
Jun 11, 2026
mediumSoftware EngineerOnsiteCoding & Algorithms
16
0
Loading...

Submit Your Answer to Earn 20XP

Sign in to leave a comment

Loading comments...