Tap here to switch tabs
Problem
Submissions

Problem: Thousand Separator

med
30 min
Try to solve the Thousand Separator problem.

Statement

Given an integer n, insert a dot ('.') as a thousand separator between every group of 33 digits starting from the right, and return the resulting value as a string.

Constraints:

  • 0≤0 \leq n ≤231−1\leq 2^{31} - 1

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Thousand Separator

med
30 min
Try to solve the Thousand Separator problem.

Statement

Given an integer n, insert a dot ('.') as a thousand separator between every group of 33 digits starting from the right, and return the resulting value as a string.

Constraints:

  • 0≤0 \leq n ≤231−1\leq 2^{31} - 1