{"id":"canformarray-bounds-check-before-value","text":"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`.","truth_value":"IN","source":"entries/2026/06/06/check-array-formation-through-concatenation-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"canformarray-bounds-check-before-value","truth_value":"IN","reason":"premise"}]}}