running-min-before-diff

Status: IN

In the maximum-difference solution, `min_val` is updated after the difference check within each loop iteration, guaranteeing the minimum always originates from an index strictly less than `j`.

Source: entries/2026/06/06/maximum-difference-between-increasing-elements-solution.md

JSON