----Trie树
这个好玩吗
Offer已在路上请耐心等待,准备入职的新人
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
HDU-1251 统计难题
考查Trie树,用G++提交会超内存,原因不详,C++提交AC// Tire树// 用G++提交会超内存,具体原因不详// 用C++提交AC#include #include #include #include #include using namespace std;typedef struct node { struct node* next[26];原创 2017-05-09 10:22:26 · 393 阅读 · 1 评论 -
HDU-1004 Let the Balloon Rise
可以用map做,这里用的是Trie树#include #include #include #include using namespace std;typedef struct node { struct node* next[26]; int value; int num;} Node;Node* createTrie() { Node*原创 2017-05-09 10:16:25 · 464 阅读 · 0 评论 -
HDU - 1800 Flying to the Mars
#include #include #include #include #include #define MAX 3000 + 10using namespace std;typedef struct node { struct node* next[10]; int num; bool isLeaf;} Node;int Max = 0;No原创 2017-05-17 21:47:53 · 407 阅读 · 0 评论
分享