Fractional Share Inventory Management

Implement a fractional-share inventory manager. It processes customer buy and sell orders expressed either in shares or in dollars, and flattens the firm's inventory after every order.

All quantities...

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: