随笔分类 -  数据结构 - Trie

摘要:题目描述 You are given an array aa consisting of \(n\) non-negative integers. You have to choose a non-negative integer \(x\) and form a new array \(b\) o 阅读全文
posted @ 2020-11-26 22:21 lrj124 阅读(107) 评论(0) 推荐(0)
摘要:其实就是把二进制数放在 Trie 上面,然后就可以解决很多问题 最大 xor 数对 就是把所有的数插到 Trie 上,每次查询每一位上有不同就走不同的边 #include <algorithm> #include <cstdio> using namespace std; const int max 阅读全文
posted @ 2020-11-25 22:40 lrj124 阅读(148) 评论(0) 推荐(0)