← 返回 coinbase 的题目列表Mine block coding question
类型:online_judge
Design and implement a function to perform block mining on a given set of transactions. Each transaction has a unique ID and other necessary attributes. Implement two functionalities: one for independent transactions and another for transactions having parent relationships.
Example
Input
{'transactions': [{'id': 1, 'fee': 10}, {'id': 2, 'fee': 15}, {'id': 3, 'fee': 5}]}
Output
[{'id': 2, 'fee': 15}, {'id': 1, 'fee': 10}]