Nth Digit
Given an integer n, return the n^th digit of the infinite integer sequence [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ...].
Example 1
Input
n = 3Output
3The 3rd digit of the sequence is 3.
Example 2
Input
n = 11Output
0The 11^th digit of the sequence is a 0, which is part of the number 10.
Constraints
- 1 <= n <= 2^31 - 1