fallback-removes-last-occurrence

Status: IN

When no greedy opportunity exists (every occurrence of `digit` is followed by an equal-or-smaller digit or is terminal), the algorithm removes the rightmost occurrence to preserve the most significant larger digits.

Source: entries/2026/06/06/remove-digit-from-number-to-maximize-result-solution.md

JSON