CodingMedium
Matrix Traversal for Maximum Energy
Filed under UBS
The question
Given a 4x4 matrix and an initial energy of 100, find the maximum possible remaining energy to reach the last row. You start at any cell in the first row and can move from (i, j) to (i+1, j-1), (i+1, j), or (i+1, j+1), with each cell reducing energy by mat[i][j].
No write-up yet. Related questions below have one.
Related UBS questions
Collected from public candidate posts and coding forums. Updated Nov 2026.