pat重要的算法模板
文章平均质量分 80
rwrsgg
即使身处黑暗,心中也应该有光才对
展开
-
1098_heap_sort
According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertion sort removes one element from the input data, finds the location it belongs within the sorted list, an原创 2021-08-22 17:17:27 · 165 阅读 · 0 评论 -
1147_heaps树的遍历大顶堆小顶堆的判断
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 to原创 2021-08-22 16:48:01 · 254 阅读 · 0 评论