{"id":"relative-sort-uses-counter-pop-partition","text":"`Counter.pop` during the `arr2` traversal both retrieves element counts and removes keys, partitioning elements into \"ordered\" and \"remainder\" groups in a single pass without a separate set lookup.","truth_value":"IN","source":"entries/2026/06/06/relative-sort-array-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"relative-sort-uses-counter-pop-partition","truth_value":"IN","reason":"premise"}]}}