New
ML System Design & SQL tracks just landed
See what's new
×
Question Bank
Pricing
Blog
Forum
HOT
Referral
Description
Solution
Discussion
Submissions
Ask AI
Question Bank
OpenAI
Coding Question
AI Insights
Quick Summary
Track user follow relationships over time using versioned edge histories.
Capture current state efficiently via incrementing snapshot IDs.
Query historical state by finding the most recent relevant update before a given snapshot ID.
What This Tests
Temporal data structures and version control concepts
Efficient mutation and query design using hash maps
Binary search for historical state retrieval
Optimizing space complexity by avoiding full graph copies
Common Patterns
Hashing
Binary Search
Collapse
Hint 1
Hint 2
Hint 3
What Interviewers May Ask Next
Ask AI Assistant
Ask AI Assistant
Ask me anything about this coding question!
Qwen
Qwen3.6-Flash
0/2000
Auto
Debug
Run
Submit
Test Cases
Input
Output
Expected