{"id":"right-to-left-in-place-expansion-pattern","text":"The two-pass right-to-left copy in duplicate-zeros is the same strategy used for merge-sorted-array and similar in-place expansion problems — it avoids O(n) shifting per insertion and O(n) extra space.","truth_value":"IN","source":"entries/2026/06/06/duplicate-zeros-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"right-to-left-in-place-expansion-pattern","truth_value":"IN","reason":"premise"}]}}