Maintain Fractional Stock Inventory Across Orders
Company: Robinhood
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: medium
Interview Round: Onsite
Overview: Simulate sequential customer buy and sell orders while keeping a firm's fractional stock inventory between zero and one share. The task uses scaled integer quantities and prices, exact dollar-to-share conversion, whole-share flattening, and deterministic symbol-sorted output.
Read the full Robinhood Software Engineer interview experience this question came from