Software Engineer • Mid-Level
Software Engineer • Mid-Level
High QualityPrep Other Coding Questions Asked by Lyft
Continue with targeted prep from Lyft's coding question bank.
Interview Summary
The Lyft technical phone screen used a practical pagination problem rather than a conventional LeetCode-style algorithm. The task was to build a stateful fetch_n abstraction on top of an existing paginated API, with particular attention to preserving unused items between calls and handling page boundaries correctly.
Interview Details
Coding — Stateful Fetch N Items from a Paginated API
An upstream API provides an operation conceptually similar to: fetch(page_id) -> (items, next_page_id). Each call returns the items contained in the current page together with an identifier for the next page. The task was to implement a higher-level method: fetch_n(n) that returns up to n items while transparently traversing page boundaries.
The important requirement was that fetch_n must remain stateful across multiple calls. For example,
Unlock Full Details
Create a free account to unlock this interview experience report.