diagonal-sum-n1-correctness

Status: IN

For a 1x1 matrix, the loop adds the element twice and the odd-correction subtracts it once, yielding the correct result through the general path rather than special-case code.

Source: entries/2026/06/06/matrix-diagonal-sum-solution.md

JSON