Fast Transaction Selection for a Capacity-Limited Block
Problem
You are given an unsorted mempool of transactions. Each transaction has a unique id, a transaction fee fee, and a size. The block capacity is fixed at 100.
Select transactions wh...
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:
