Dependency-Aware Block Construction with Child Pays for Parent

Problem

Each mempool transaction has a unique id, a fee fee, a size, and an optional parent_id. A transaction has at most one direct parent, while a parent may have multiple children. Depen...

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: