staircase-traversal-for-sorted-matrix

Status: IN

The sorted-matrix negative count uses O(m+n) staircase traversal starting from top-right corner, not binary-search-per-row or brute force — the same pattern applicable to LeetCode 240 and 378.

Source: entries/2026/06/06/count-negative-numbers-in-a-sorted-matrix-solution.md

JSON