Problems > Digit Duel > Editorial

Digit Duel — Solution & Editorial

Back to the Problem

Zero-pad to equal length, take per-position max, strip leading zeros via integer conversion.

Complexity: O(digits)