{"id":"height-checker-j-monotonic","text":"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).","truth_value":"IN","source":"entries/2026/06/06/height-checker-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"height-checker-j-monotonic","truth_value":"IN","reason":"premise"}]}}