Leetcode - 400. Nth Digit
400. Nth Digit[M]
https://leetcode.com/problems/nth-digit/
Description
Find the nth digit of the infinite integer sequence 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, …
Note:
n is positive and will fit within the range of a 32-bit signed integer (n < 231).
Example 1:
1 | Input: |
Example 2:
1 | Input: |
Solution
https://leetcode.com/problems/nth-digit/discuss/88363/Java-solution
1 |
All articles in this blog are licensed under CC BY-NC-SA 4.0 unless stating additionally.
Comment





