MINDTREE (LTI MINDTREE) Hiring | On Campus OA 2024 | Maximum Number of Points from Grid Queries

Question · Posted Jun 2026

Problem Statement You are given an m x n integer grid and an array of integers queries. For each query value q, start from the top-left cell (0,0) and move in four possible directions (up, down, left, right). You can visit a cell only if its value is strictly less than the current query value. For every query, determine the maximum number of cells that can be reached and collected starting from (0,0). Return an array where the i-th element ...

The full answer & interview discussion are available to premium members.

Log in Create a free account