Facebook | Phone | Nth Digit

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2020-05-08Added By Anonymous
Source: Link

Company: Meta
Role: e3, e4
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

https://leetcode.com/problems/nth-digit/

You have an infinite string whose pattern is natural number sequence. "12345678910111213141516..100101112..". The string itself is not in memory.
Return kth character.
Ex:
k =1 return 1
k = 10 return 1
k=11 return 0

Comments