0400. Nth Digit
https://leetcode.com/problems/nth-digit
Description
Given an integer n
, return the nth
digit of the infinite integer sequence [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, ...]
.
Example 1:
Example 2:
Constraints:
1 <= n <= 231 - 1
ac
Last updated