Problems > Readable Numbers > Editorial

Readable Numbers — Solution & Editorial

Back to the Problem

Process the decimal string from the right in blocks of three (or repeatedly divmod by 1000).

Complexity: O(digits)