![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
数据结构
文章平均质量分 92
Charon_HN
NLP炼丹儿
展开
-
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 · 284 阅读 · 0 评论 -
POJ 1990 (树状数组入门)
MooFestEvery 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 · 274 阅读 · 0 评论 -
数据结构--最小堆、最大堆(小根堆、大根堆)
1.最小堆的实现参考:https://blog.csdn.net/genios/article/details/8157031int 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 · 1340 阅读 · 0 评论 -
C语言实现数据结构之 前序遍历、后续遍历、中序遍历
在这里我就不赘述他们的概念了,前辈们写的很详细:https://blog.csdn.net/qq_34154570/article/details/82700094https://www.cnblogs.com/lanhaicode/p/10390147.html我就直接用例题来说明吧#include <cstdio>#include <iostream>#i...原创 2020-01-28 18:12:10 · 624 阅读 · 0 评论