Trie
Frontier_Setter
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
USACO 6.1.3 Cow XOR 字典树
http://train.usaco.org/usacoprob2?a=Hfv8bxVT1Ac&S=cowxor题目大意:一串N个数(可能有相同),求出异或最大的序列,有相同解则取结尾靠前的,再相同则取短的字典树,在字典树里标记位置/* ID: frontie1 TASK: cowxor LANG: C++ */ #include <iostream> #include <...原创 2018-02-11 20:00:24 · 310 阅读 · 0 评论 -
[LeetCode] (medium) 421. Maximum XOR of Two Numbers in an Array
https://leetcode.com/problems/maximum-xor-of-two-numbers-in-an-array/ Given anon-emptyarray of numbers, a0, a1, a2, … , an-1, where 0 ≤ ai< 231. Find the maximum result of aiXOR aj, where 0 ...原创 2019-05-01 16:13:42 · 183 阅读 · 0 评论
分享