{"id":"min-moves-three-pass-linear","text":"`min_moves` makes three O(n) passes (min, max, count) using a generator inside `sum()`, achieving O(n) time and O(1) auxiliary space.","truth_value":"IN","source":"entries/2026/06/06/count-elements-with-strictly-smaller-and-greater-elements-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"min-moves-three-pass-linear","truth_value":"IN","reason":"premise"}]}}