Available question text
Compute the minimum cost to move a robot from start to home on an m×n grid where entering row r costs rowCosts[r] and entering column c costs colCosts[c]. Because costs are nonnegative, an optimal path is monotonic, so the answer is the sum of rowCosts for rows between startRow and homeRow (excluding the start) plus the sum of colCosts for columns between startCol and homeCol (excluding the start).
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2087. Minimum Cost Homecoming of a Robot in a Grid
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source