Level: Senior-Level
Round: Phone Screen · Type: Coding · Difficulty: 6/10 · Duration: 60 min · Interviewer: Friendly
Topics: API Design, Pagination
Location: San Francisco Bay Area
Interview date: 2025-05-15
I had a phone screen interview that focused on designing a pagination API.
The interviewer was friendly. After brief introductions, I was asked to design a pagination API. I could call an external API that returns data for a specific page (e.g., input 3 to get the third page). The new API should allow users to input a number (e.g., 30) and return the first 30 data points, then input 8 to get data points 31-39, and so on. I could only call the external API and didn't have access to the original data.
After writing the code, I was asked follow-up questions, such as how to handle large datasets and frequent API calls.