Math Fundamentals18 sections · 814 units
Open in Course

Practice - Nth Digit

(LeetCode 400)

Given an integer n, return the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ...

Use mod and division to find which number the digit belongs to and which position within that number.