
数据结构
icesongqiang
夫事不可以两立也,圣人知其然,是故有所取,必有所舍;有所禁,必有所宽。宽之则其禁必止,舍之则其取必得。
展开
-
最小生成
5 50 0 0 0 00 0 1 0 00 1 2 1 00 0 1 0 00 0 0 0 0#include <stdio.h>#include <stdlib.h>#include <string.h>#include <limits.h>#include <string>#include <stac...原创 2019-10-26 19:08:49 · 284 阅读 · 0 评论 -
最大堆和最小堆
最大堆和最小堆本质上是一样的,只需要重新定义数据大小的比较方式即可;最大堆以数组方式存储。将数组按最大堆的方式生成,弹出和插入原创 2017-02-21 11:32:25 · 335 阅读 · 0 评论