Search
⌘K

Leetcode 1556. Thousand Separator

Format a non-negative integer as a string by inserting a dot "." every three digits from the right (thousands separator). Handle numbers up to 2^31-1, returning the original digits when fewer than four.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.