Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
Capital Gains Tax Calculator
Hard
You are given a chronologically sorted list of stock transactions. Each transaction is a list of strings in the format [<timestamp>, <type>, <shares>, <price>], where type is either "buy" or "sell", and all numeric fields are given as strings.
When selling, a 10% tax is applied to any realized profit. If a sale yields no profit (or a loss), no tax is owed. ...
More Coinbase interview questions
- Transaction Query Enginehard
- Exchange Rate Findermedium
- Order Matching Enginehard
- OA[CodeSignal] Design Banking Systemhard
- OA[CodeSignal] Cloud File Storage Systemhard
- Transaction Systemhard
- Crypto Trading System Streammedium
- Food Delivery Systemmedium
OfferRetriever
Master technical interviews with real questions from top companies. Build your confidence and career.
LEGAL
© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.