资源列表
[数据结构常用算法] snakenumber
说明:蛇形数 输入n ,输出蛇形数,如n=4时,输出 10 11 12 1 9 16 13 2 8 15 14 3 7 6 5 4 -Enter the number of snake n, the number of output snake, such as n = 4, the output 10 11 1,219,161,328,151,437,654<pj> 在 2025-06-14 上传 | 大小:191kb | 下载:0
[数据结构常用算法] establishment-and-traversal
说明:数据结构图的建立与遍历,广度遍历,深度遍历-Data structure of the establishment and traversal, traverse the breadth and depth traversal<butterfly> 在 2025-06-14 上传 | 大小:1kb | 下载:0
[数据结构常用算法] calculator
说明:运用堆栈算法实现的可执行计算器,能够计算除 函数外的计算。-Executable stack algorithm using calculator can calculate calculate except outside the function.<butterfly> 在 2025-06-14 上传 | 大小:1kb | 下载:0
[数据结构常用算法] Josephus
说明:约瑟夫环是一个数学的应用问题:已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。-Josephus is the application of a mathematical problem: Given n individuals (with numbers 1,2,3 ... n, respectively) sitting around a<butterfly> 在 2025-06-14 上传 | 大小:1kb | 下载:0
[数据结构常用算法] Tree-traversal
说明:树的遍历。树的缩格打印、先根遍历,中根遍历,后根遍历的递归非递归调用,交换左右子树递归调用。-Tree traversal. Tree indent printing, the first root traversal, traversing root, root recursive traversal non-recursive calls, switching left and right subtrees recursively.<butterfly> 在 2025-06-14 上传 | 大小:1kb | 下载:0