Product
Pricing
Blog
Forum
NEW
Referral
Description
Solution
Discussion
Submissions
Ask AI
AI Insights
Quick Summary
Wrap an external paginated API to serve a continuous, sequential stream of items.
Maintain internal state to track the current page and position within its buffer.
Fetch new pages on-demand only when the current buffer is exhausted.
What This Tests
Stateful iterator design and interface adaptation
Buffer management for streaming data
Handling variable chunk sizes and end-of-data boundaries
Memory efficiency through lazy loading
Common Patterns
Iterator Pattern
Lazy Loading
Buffer Management
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Report
Report seen similar question in interview
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
python
Auto
Debug
Run
Submit
Stdout
-