{"id":"good-triplets-empty-range-handles-small-arrays","text":"When `len(arr) < 3`, `range(n - 2)` produces an empty range, so `countGoodTriplets` returns 0 without error — no special-casing needed.","truth_value":"IN","source":"entries/2026/06/06/count-good-triplets-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"good-triplets-empty-range-handles-small-arrays","truth_value":"IN","reason":"premise"}]}}