372. Missax Jun 2026
[ |g(i,j)| < \Delta, ]
We process the sequence left‑to‑right, maintaining a keyed by the last value of each candidate subsequence length. For each element a_i we query the BBST for the longest subsequence that can be extended while respecting both monotonicity and the Δ‑gap. 372. Missax