| 13 | type Comparator<T> = Box<dyn Fn(&T, &T) -> bool>; |
| 14 | |
| 15 | pub struct PQ<T> { |
| 16 | pq: Vec<T>, // 为了计算方便, pq的index是从1开始计算的, 0号元素未被使用 |
| 17 | n: usize, |
| 18 | comparator: Comparator<T>, |
| 19 | } |
| 20 | |
| 21 | pub struct IndexPQ<T> { |
| 22 | // max_n: usize, // maximum number of elements on PQ |
nothing calls this directly
no outgoing calls
no test coverage detected