数据结构-自底向上的赫夫曼编码-题解(C++代码) 摘要:```cpp #include #include #include #include #include using namespace std; struct Node { …… 题解列表 2020年03月13日 0 点赞 0 评论 1968 浏览 评分:9.9
数据结构-线索二叉树-题解(C++代码) 摘要:```cpp #include using namespace std; struct A { char data; struct A *lchild; str…… 题解列表 2020年03月13日 0 点赞 0 评论 986 浏览 评分:9.9
C语言训练-字符串正反连接-题解(C++代码) 摘要:```cpp #include #include using namespace std; int main() { string s1,s2; cin>>s1;…… 题解列表 2020年03月13日 0 点赞 0 评论 833 浏览 评分:0.0
C语言训练-最大数问题-题解(C++代码) 摘要:```cpp #include using namespace std; typedef struct Node{ int data; struct Node *nex…… 题解列表 2020年03月13日 0 点赞 1 评论 942 浏览 评分:9.9
数据结构-采用十字链表存储的稀疏矩阵-题解(C++代码) 摘要:```cpp #include using namespace std; struct A { int row; int col; int data; …… 题解列表 2020年03月13日 0 点赞 1 评论 989 浏览 评分:4.7
数据结构-静态表的顺序查找-题解(C++代码) 摘要:向前逐个查找即可。 不过如果找不到记得输出-1 ```cpp #include using namespace std; int main(){ int k,n; cin…… 题解列表 2020年03月13日 0 点赞 0 评论 1289 浏览 评分:8.0
数据结构-无向图的连通分量和生成树-题解(C++代码) 摘要: ```cpp #include using namespace std; const int n = 52; typedef int adjMatrix[n][n]; struct G…… 题解列表 2020年03月13日 0 点赞 0 评论 1240 浏览 评分:9.9
数据结构-一元多项式加法-题解(C++代码) 摘要:```cpp #include #include #include #include #include #include #include #include #define n …… 题解列表 2020年03月13日 0 点赞 0 评论 1391 浏览 评分:9.9
信息学奥赛一本通T1291-数字组合 (C++代码) 摘要:定义 dp[i][j]:在前i个数当中,和为j的组合数。 对于每一个i,j有情况 1. j=a[j] 此时dp[i][j]等于前i-1个数中和为j的组合数 加上 前i个数中和为j-a[i]…… 题解列表 2020年03月13日 0 点赞 1 评论 1923 浏览 评分:8.9
优质题解 JakeLin-1100题-采药-题解(C++代码)-DP/详解 摘要:#####一、 0/1背包动态规划的思想就是: 眼前到了这第 i 棵药,我有**两种选择**: **1.我要采它:**若我采了它,那么我所拥有的时间会减少,而我所获得的价值会增加 **2.我不采…… 题解列表 2020年03月13日 0 点赞 0 评论 3569 浏览 评分:9.9