Realized Gain/Loss from Property Transactions
Given a chronological list of property transaction records, each containing: person, property, buy or sell, and price.
Rules:
buy: the person buys the property at price; the holding cos...
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:
