island-perimeter-single-pass

Status: IN

The island perimeter algorithm computes the result in a single row-major scan with no auxiliary data structures, running in O(rows × cols) time and O(1) extra space.

Source: entries/2026/06/06/island-perimeter-solution.md

JSON