height-checker-j-monotonic

Status: IN

The cursor `j` only advances forward across the outer loop, so total inner `while` iterations are O(k) amortized across all elements — the nested loop is not O(n*k).

Source: entries/2026/06/06/height-checker-solution.md

JSON