随笔分类 -  数据结构与算法C++

摘要:#include<iostream> #include<algorithm> using namespace std; struct Item{ int w,d; //w体积,d价值 }; Item items[3500]; int f[13000]; //j个空间的能装的最大价值f[j] int 阅读全文
posted @ 2020-07-28 17:39 执着于风 阅读(104) 评论(0) 推荐(0)
摘要:#include<iostream> #include<queue> #include<stack> using namespace std; struct BinaryTreeNode { char data; BinaryTreeNode* leftChild; BinaryTreeNode* 阅读全文
posted @ 2019-09-10 17:57 执着于风 阅读(827) 评论(0) 推荐(0)