PAT1147 Heaps (30分)堆,树的DFS,层次遍历转后序
PAT 1147 Heaps(30分)
In computer science, a heap is a specialized tree-based data structure that satisfies the heap property: if P is a parent node of C, then the key (the value) of P is either greater than or equal to (in a max heap) or less than or equal
原创
2020-08-21 14:50:18 ·
185 阅读 ·
0 评论