
数据结构
文章平均质量分 92
Charon_HN
地摊炼丹大师、科研农民工、乡野程序员
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Koch Curve(递归分治)
题目链接 Write a program which reads an integer n and draws a Koch curve based on recursive calles of depth n. The Koch curve is well known as a kind of fractals. You can draw a Koch curve in the following algorithm: Divide a given segment (p1, p2) into three原创 2021-02-20 22:13:39 · 365 阅读 · 0 评论 -
POJ 1990 (树状数组入门)
MooFest Every year, Farmer John’s N (1 <= N <= 20,000) cows attend “MooFest”,a social gathering of cows from around the world. MooFest involves a variety of events including haybale stacking, fe...原创 2020-03-29 11:41:41 · 320 阅读 · 0 评论 -
数据结构--最小堆、最大堆(小根堆、大根堆)
1.最小堆的实现参考:https://blog.csdn.net/genios/article/details/8157031 int a[N]; void Build(){ for(int i=n/2;i>=1;i--){ int tem=a[i]; int j=i*2; while(j<=n){ if...原创 2020-02-01 18:26:58 · 1443 阅读 · 0 评论 -
C语言实现数据结构之 前序遍历、后续遍历、中序遍历
在这里我就不赘述他们的概念了,前辈们写的很详细: https://blog.csdn.net/qq_34154570/article/details/82700094 https://www.cnblogs.com/lanhaicode/p/10390147.html 我就直接用例题来说明吧 #include <cstdio> #include <iostream> #i...原创 2020-01-28 18:12:10 · 666 阅读 · 0 评论