资源列表
[数据结构常用算法] JOSE2
说明:Josephus 问题的解答。n个孩子围成圆圈,选任一个数m,从第一个孩子开始数,数到m停止,这个孩子离开,再从第一个开始数,直到剩下一个孩子。-Josephus questions. n children surrounded the circle, selected a number of m, from the beginning of their first child a few, a few m to stop the child to leave, and then started<renqiang> 在 2025-06-03 上传 | 大小:1kb | 下载:0
[数据结构常用算法] JOSE3
说明:Josephus 问题的解答。n个孩子围成圆圈,选任一个数m,从第一个孩子开始数,数到m停止,这个孩子离开,再从第一个开始数,直到剩下一个孩子。-Josephus questions. n children surrounded the circle, selected a number of m, from the beginning of their first child a few, a few m to stop the child to leave, and then started<renqiang> 在 2025-06-03 上传 | 大小:1kb | 下载:0
[数据结构常用算法] erchashuyezijiedianshu
说明:用c++语言实现的统计二叉树叶子节点个数 个人感觉不错仅供参考-With c++ Realize statistical language tree leaf node number of a good personal feeling is for reference only<王力> 在 2025-06-03 上传 | 大小:1kb | 下载:0
[数据结构常用算法] same
说明:有时需要测试2 个数据结构的同构性,即2个同构的结构在相应的位置具有相同结点数 和分枝数。试设计一个递归函数用于测试2 棵二叉树是否同构。-Sometimes need to test two data structure isomorphism, ie isomorphism of two structures in the corresponding location with the same number of nodes and branches. Test the design<杨哲> 在 2025-06-03 上传 | 大小:1kb | 下载:0