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
Simulate sequential buy and sell orders against a fractional stock inventory.
Parse mixed quantity formats and apply modulo arithmetic to maintain fractional share bounds.
Return the updated inventory sorted by stock symbol.
What This Tests
Hash table usage for efficient state tracking
String parsing and unit conversion
Modulo arithmetic and ceiling/floor operations
Sequential simulation with conditional branching
Common Patterns
Hashing
Sorting
Collapse
Hint 1
Hint 2
What Interviewers May Ask Next
Accepted
3k
/5.7k
Acceptance Rate
53.4%
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
orders =
inventory =
Output
Expected