资源列表

« 1 2 ... .18 .19 .20 .21 .22 2623.24 .25 .26 .27 .28 ... 2656 »

[数据结构常用算法stack_with_min_func

说明:定义栈的数据结构,要求添加一个min函数,能够得到栈的最小元素。要求函数min、push、pop的时间复杂度都是O(1)-Defined stack data structure, requires the addition of a min function, it is possible to obtain the smallest element of the stack. Function requires min, push,
<大胡子> 在 2025-02-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法SortedList_to_BalancedBinaryTree

说明:给定一个升序排列的有序单链表,将其转换为一棵平衡的二叉搜索树。-Ordered to set a single list in ascending order, to convert it to a balanced binary search tree.
<大胡子> 在 2025-02-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法print_all_ancestors

说明:对于一颗普通的二叉树和一个节点key,找出该节点的所有祖先节点。-For an ordinary binary tree and a node key, to find all ancestors of this node.
<大胡子> 在 2025-02-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法preorder_tree_stack

说明:二叉树非递归先序遍历,使用栈 一直往左走 root->left->left->left…->null, 由于是先序遍历,因此一遇到节点,便需要立即访问; 由于一直走到最左边后,需要逐步返回到父节点访问右节点, 因此必须有一个措施能够对节点序列回溯。 有两个办法: 1.用栈记忆:在访问途中将依次遇到的节点保存下来。由于节点出现次序与恢复次序是反序的,因此是一个先进后出结构,需要用栈。
<大胡子> 在 2025-02-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法Josephu

说明:代码用于解决特殊的约瑟夫环的问题,运用了链表,占和队列。- Code is used to address the special problems of Josephus, the use of the list, accounting and queues.
<周姜波> 在 2025-02-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法huichang

说明:执行贪婪算法,让持续时间最短的优先安排会场 -Execute greedy algorithm, so that the duration of the shortest priority venue
<kiko> 在 2025-02-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法zuiyouhebing

说明:最优合并问题,当取最小值保证每次的2个加数为最小便可,最大值同理取当前最大的两个值便可。取最小值与取最大值实现的方式不同,最小值不需要排序。-Optimal merger, when the minimum value of each guaranteed two addends can be minimum, maximum empathy take the current maximum of two values can be.
<kiko> 在 2025-02-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法tree

说明:二叉树的简单实现代码,二叉树的简单实现代码-simple presentation of binary tree.
<Flarite> 在 2025-02-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法stack

说明:用C语言实现的静态栈的算法,清晰明了,方便学习-Using C language implementation of the static stack algorithm, clear, easy to learn
<Flarite> 在 2025-02-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法staticStac

说明:用C语言实现的动态栈的算法,清晰明了,方便学习-Using C language implementation of the dynamic stack algorithm, clear, easy to learn
<Flarite> 在 2025-02-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法Untitled1

说明:数据结构中,对链表的操作,可以完成链表排序及逆序的功能。-Data structure, Chain operation, can be done to sort the list in reverse order and function.
<陈南木> 在 2025-02-07 上传 | 大小:1kb | 下载:0

[数据结构常用算法kuaisu

说明:快速算法排序:用户输入10个数,然后程序自动根据快速算法进行排序-A fast algorithm for sorting
<吴关昊> 在 2025-02-07 上传 | 大小:1kb | 下载:0
« 1 2 ... .18 .19 .20 .21 .22 2623.24 .25 .26 .27 .28 ... 2656 »

源码中国 www.ymcn.org