{"id":"solutions-are-pure-no-mutation","text":"Solutions in this repo (including `minOperations`, `makeTwoArraysEqualByReversingSubarrays`, and `majority_element`) do not mutate their input arguments; they use non-mutating operations like `sorted()`, `set()`, and scalar variables.","truth_value":"IN","source":"entries/2026/06/06/make-two-arrays-equal-by-reversing-subarrays-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"solutions-are-pure-no-mutation","truth_value":"IN","reason":"premise"}]}}