堆
小·幸·运
你的所有努力最后都会回赠予你。
展开
-
PAT甲级A1147 Heaps(30 分)
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 t...原创 2018-09-06 22:03:09 · 266 阅读 · 0 评论 -
PAT甲级A1098 Insertion or Heap Sort (25 分)
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,...原创 2019-02-24 19:15:15 · 251 阅读 · 0 评论 -
PAT甲级A1155 Heap Paths (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 (i...原创 2019-03-16 20:51:41 · 273 阅读 · 0 评论