{"id":"triplet-order-independence","text":"The group-contribution sweep in `countTriplets` produces the same result regardless of iteration order over `Counter.values()`, because each triple of distinct groups is counted exactly once when its \"middle\" group (in processing order) is visited.","truth_value":"IN","source":"entries/2026/06/06/number-of-unequal-triplets-in-array-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"triplet-order-independence","truth_value":"IN","reason":"premise"}]}}