{"id":"contribution-counting-replaces-enumeration","text":"`sumOddLengthSubarrays` uses per-element contribution counting — computing how many odd-length subarrays include each index — to achieve O(n) instead of O(n^2) subarray enumeration","truth_value":"IN","source":"entries/2026/06/06/sum-of-all-odd-length-subarrays-solution.md","source_url":"","source_hash":"","justifications":[],"dependents":[],"metadata":{},"created_at":"","updated_at":"","reviewed_at":"","verified_at":"","retracted_at":"","explanation":{"steps":[{"node":"contribution-counting-replaces-enumeration","truth_value":"IN","reason":"premise"}]}}