canformarray-linear-time

Status: IN

`canFormArray` runs in O(n) time where n = len(arr), visiting each element exactly once via a greedy left-to-right scan with hash-map lookups.

Source: entries/2026/06/06/check-array-formation-through-concatenation-solution.md

JSON