{"id":"build-array-encode-order-safety","text":"The `% n` in `nums[nums[i]] % n` during the encode pass ensures correctness regardless of whether `nums[nums[i]]` has already been encoded earlier in the same loop iteration.","truth_value":"IN","source":"entries/2026/06/06/build-array-from-permutation-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"build-array-encode-order-safety","truth_value":"IN","reason":"premise"}]}}