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
Robinhood
Coding Question
AI Insights
Quick Summary
Process a chronological sequence of API calls to manage users, friendships, and transactions.
Maintain real-time state using hash maps and sets for balances, pending requests, and connections.
Apply conditional transfer rules based on friendship status and account funds, then output final balances.
What This Tests
Hash table usage for O(1) lookups and updates
Sequential state simulation
String tokenization and parsing
Constraint validation logic
Common Patterns
Hashing
Collapse
Hint 1
Hint 2
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