Closed alon-e closed 5 years ago
related to: #86 focusing on 2. ii. in this issue.
the following functionality is needed: given a list of recent tips M, find the N most recent transactions.
M
N
arrivalTime
max
priority queues are linear for contains(), use result set to avoid adding an already visited node to the heap.
contains()
related to: #86 focusing on 2. ii. in this issue.
the following functionality is needed: given a list of recent tips
M
, find theN
most recent transactions.arrivalTime
.max
is popped, added to result, and it's 2 children added to the heap (sorted by arrivalTime).N
transactions have been popped.