摘要: 实现一个 Trie (前缀树),包含 , , 和 这三个操作。 示例: 说明: 你可以假设所有的输入都是由小写字母 构成的。 保证所有输入均为非空字符串。 思路分析 模板题,就没有什么好说的了,直接上代码。 python3 include using namespace std; const int 阅读全文
posted @ 2018-12-31 19:44 狂徒归来 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 给定范围 [m, n],其中 0 using namespace std; static auto x = "" { std::ios::sync_with_stdio(false); std::cin.tie(NULL); return 0; }(); class Solution { publi 阅读全文
posted @ 2018-12-31 19:41 狂徒归来 阅读(911) 评论(0) 推荐(0) 编辑