Given an integer n, add a dot (".") as the thousands separator and return it in string format.
Example 1:
Input: n = 987 Output: "987"
Example 2:
Input: n = 1234 Output: "1.234"
Constraints:
0 <= n <= 231 - 1Solutions for this problem are being prepared.
Try solving it yourselfLeetCode 1556. Thousand Separator - Interview Prep Ep 93 • Fisher Coder • 734 views views
Watch 9 more video solutions →Practice Thousand Separator with our built-in code editor and test cases.
Practice on FleetCodePractice this problem
Open in Editor