Fractional Shares Trading & Inventory Updates
Fractional Shares: Process Trades and Maintain Inventory
Implement a program that processes a sequence of stock trade operations and maintains an up-to-date inventory (positions) per ticker. Trade...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
