shift-grid-flatten-rotate-reshape

Status: IN

The 2D grid shift is implemented by flattening to 1D, rotating via Python slice (`flat[-k:] + flat[:-k]`), and reshaping back — the canonical idiom for cyclic 2D shifts that avoids manual index arithmetic.

Source: entries/2026/06/06/shift-2d-grid-solution.md

JSON