scatter-write-for-permutation-rearrangement

Status: IN

The shuffle-string solution uses a scatter-write pattern (pre-allocate result array, write each element directly to its target index) for O(n) permutation-based rearrangement, rather than sorting or in-place mutation.

Source: entries/2026/06/06/shuffle-string-solution.md

JSON