You are given an integer n. Consider the infinite sequence formed by writing all positive integers in order and concatenating their decimal representations: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, .... Return the digit located at the
Implement int findNthDigit(int n) to return that digit.
Constraints:
n
You are given an integer n. Consider the infinite sequence formed by writing all positive integers in order and concatenating their decimal representations: 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, .... Return the digit located at the
Implement int findNthDigit(int n) to return that digit.
Constraints:
n