摘要: https://leetcode.com/problems/top-k-frequent-elements/ Given a non-empty array of integers, return the k most frequent elements. Example 1: Example 2: 阅读全文
posted @ 2019-01-29 22:25 _Zlrrr 阅读(145) 评论(0) 推荐(0)
摘要: https://ac.nowcoder.com/acm/contest/330#question A.Applese 的取石子游戏 #include <bits/stdc++.h> using namespace std; const int maxn = 1e5 + 10; int N; int 阅读全文
posted @ 2019-01-29 20:43 _Zlrrr 阅读(368) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805342821531648 In computer science, a heap is a specialized tree-based data structure t 阅读全文
posted @ 2019-01-29 20:27 _Zlrrr 阅读(104) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/1038430013544464384 The "travelling salesman problem" asks the following question: "Given a 阅读全文
posted @ 2019-01-29 12:39 _Zlrrr 阅读(410) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/1071785301894295552 A proper vertex coloring is a labeling of the graph's vertices with col 阅读全文
posted @ 2019-01-29 10:51 _Zlrrr 阅读(165) 评论(0) 推荐(0)