资源列表
[数据结构常用算法] 遍历二叉树
说明:简单的二叉树通过递归算法遍历,先序遍历中序遍历和后序遍历。通过遍历对二叉树的结构有更深入的学习(Simple two tree traversal through recursive algorithm, first order traversal traversal and preorder traversal. Through traversal, the structure of the two fork tree has a more in-depth study)<沧海森林 > 在 2025-06-18 上传 | 大小:15.32mb | 下载:0
[数据结构常用算法] binary tree
说明:二叉树的创建和非递归遍历,包括先序遍历,中序遍历,后序遍历(the creation and non-recursive traversal of binary tree)<unstoppable > 在 2025-06-18 上传 | 大小:1kb | 下载:0
[数据结构常用算法] mastering algoritnm with c examples
说明:mastering algorithm with c examples<brucetmp1227 > 在 2025-06-18 上传 | 大小:275kb | 下载:0
[数据结构常用算法] 猴子选大王
说明:猴子选大王,有N只猴子,从1~N进行编号。它们按照编号的顺时针方向,排成一个圆圈,然后从第一只猴子开始报数。第一只猴子报1,以后每只猴子报的数字都是它前面猴子所报数字加1。如果一只猴子报的数字是M,则该猴子出列,下一只猴子重新从1开始报数。剩下的猴子继续排成一个圆圈报数,直到全部的猴子都出列为止。最后一个出列的猴子胜出。按照上述规则,编写程序选出排成一圈的猴子中的大王。(Monkey King, N monkeys, numbered from 1 to N. They are in accor<meower > 在 2025-06-18 上传 | 大小:1kb | 下载:0
[数据结构常用算法] recursion_cycle
说明:两个c++递归循环算法,代码比较简单,仅供参考(Two c++ recursive loop algorithms, the code is simple, for reference only)<starry123 > 在 2025-06-18 上传 | 大小:1kb | 下载:0
[数据结构常用算法] recursion_overtime
说明:几个c++递归超时算法,代码比较简单,仅供参考(Several c++ recursive timeout algorithms, the code is simple, for reference only)<starry123 > 在 2025-06-18 上传 | 大小:1kb | 下载:0