canformarray-bounds-check-before-value

Status: IN

The inner loop checks `i >= len(arr)` before comparing `arr[i] != val`, preventing an out-of-bounds access when a piece would extend past the end of `arr`.

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

JSON