Medium · Math & Number Theory · about 20 minutes
Asked at Google, Amazon, Microsoft, Bloomberg.
Return the n-th digit (1-indexed) of the infinite sequence 123456789101112… formed by writing the positive integers in order.
n
123456789101112…