首页
AI Coding
NEW
沸点
课程
直播
活动
AI刷题
APP
插件
搜索历史
清空
创作者中心
写文章
发沸点
写笔记
写代码
草稿箱
创作灵感
查看更多
会员
登录
注册
MOOC - 数据结构
dsyislearning
创建于2022-08-08
订阅专栏
做题记录
暂无订阅
共37篇文章
创建于2022-08-08
订阅专栏
默认顺序
默认顺序
最早发布
最新发布
05-树9 Huffman Codes
Problem Description In 1953, David A. Huffman published his paper "A Method for the Construction of
05-树8 File Transfer
Problem Description We have a network of computers and a list of bi-directional connections. Each of
05-树7 堆中的路径
题目描述 将一系列给定数字依次插入一个初始为空的小顶堆H[]。随后对任意给定的下标i,打印从H[i]到根结点的路径。 输入格式 每组测试第1行包含2个正整数N和M(≤1000),分别是插入元素的个数、
04-树7 二叉搜索树的操作集
题目描述 本题要求实现给定二叉搜索树的5种常用操作。 函数接口定义 其中BinTree结构定义如下: 函数Insert将X插入二叉搜索树BST并返回结果树的根结点指针; 函数Delete将X从二叉搜索
04-树6 Complete Binary Search Tree
Problem Description A Binary Search Tree (BST) is recursively defined as a binary tree which has the
04-树5 Root of AVL Tree
Problem Description An AVL tree is a self-balancing binary search tree. In an AVL tree, the heights
04-树4 是否同一棵二叉搜索树
题目描述 给定一个插入序列就可以唯一确定一棵二叉搜索树。然而,一棵给定的二叉搜索树却可以由多种不同的插入序列得到。例如分别按照序列{2, 1, 3}和{2, 3, 1}插入初始为空的二叉搜索树,都得到
03-树3 Tree Traversals Again
Problem Description An inorder binary tree traversal can be implemented in a non-recursive way with
03-树2 List Leaves
Problem Description Given a tree, you are supposed to list all the leaves in the order of top down,
03-树1 树的同构
题目描述 给定两棵树T1和T2。如果T1可以通过若干次左右孩子互换就变成T2,则我们称两棵树是“同构”的。例如图1给出的两棵树就是同构的,因为我们把其中一棵树的结点A、B、G的左右孩子互换后,就得到另
02-线性结构4 Pop Sequence
Problem Discription Given a stack which can keep M numbers at most. Push N numbers in the order of 1
02-线性结构3 Reversing Linked List
Problem Discription Given a constant K and a singly linked list L, you are supposed to reverse the l
02-线性结构2 一元多项式的乘法与加法运算
题目描述 设计函数分别求两个一元多项式的乘积与和。 输入格式 输入分2行,每行分别先给出多项式非零项的个数,再以指数递降方式输入一个多项式非零项系数和指数(绝对值均为不超过1000的整数)。数字间以空
02-线性结构1 两个有序链表序列的合并
题目描述 本题要求实现一个函数,将两个链表表示的递增整数序列合并为一个非递减的整数序列。 函数接口定义 其中List结构定义如下: L1和L2是给定的带头结点的单链表,其结点存储的数据是递增有序的;函
01-复杂度3 二分查找
题目描述 本题要求实现二分查找算法。 函数接口定义 其中List结构定义如下: L是用户传入的一个线性表,其中ElementType元素可以通过 > 、 == 、< 进行比较,并且题目保证传入的数据是
01-复杂度2 Maximum Subsequence Sum
Problem Discription Given a sequence of K integers { N1, N2, ..., NK }. A continuous subsequence is
01-复杂度1 最大子列和问题
题目描述 给定K个整数组成的序列{ N1, N2, ..., NK },“连续子列”被定义为{ Ni, Ni+1, ..., Nj },其中 1≤i≤j≤K。“最大子列和”则被定义为所有连续子列元素的