Problems > Forgetful Addition > Editorial

Forgetful Addition — Solution & Editorial

Back to the Problem

Align by the last digit with zero padding; per-position (a+b) mod 10.

Complexity: O(digits)