</>OfferRetriever
DashboardDiscuss
NEW
Halloween SalePremium questions, over 30% offUnlock all premium questions for over 30% off
$10.42$7.08/mo

--

:

--

:

--

:

--

Get this deal
Back to Coinbase Questions

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. ...

Asked at:CoinbaseOptiverUber

More Coinbase interview questions

All Coinbase interview questions
OfferRetriever

Master technical interviews with real questions from top companies. Build your confidence and career.

PRODUCT
PricingDashboardDiscussOfferRetriever vs LeetCodeCompare
LEGAL

© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.