The Coinbase IC4 technical screen used a cryptocurrency mining problem centered on selecting transactions from a large mempool. The first part asked for a performant way to construct a block that collects high transaction fees while respecting a fixed block-size limit. The second part introduced parent-child transaction dependencies and Child-Pays-For-Parent (CPFP), where a high-fee child can make it worthwhile to include a lower-fee parent.
Interview Details
Part 1 — Build a High-Fee Transaction Block
A cryptocurrency miner maintains an unordered mempool containing transactions that are available to be mined. Each transaction contains:
transaction_id
fee
size
transaction_id
fee
size
A block has a fixed capacity: B = 100. The miner receives the fees of every transaction included in the block. Implement: mine_block(mempool) -> list[Transaction]. The returned transactions must fit within the block-size limit while collecting as much transaction fee as possible.
An important requirement was that the interviewer cared more about a **performant approach for a very large
Unlock Full Details
Create a free account to unlock this interview experience report.