上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 87 下一页
摘要: https://leetcode.com/problems/sort-characters-by-frequency/ Given a string, sort it in decreasing order based on the frequency of characters. Example 阅读全文
posted @ 2019-01-30 20:31 _Zlrrr 阅读(106) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/sort-list/ Sort a linked list in O(n log n) time using constant space complexity. Example 1: Example 2: 代码: 归并排序 学到了 FHF 阅读全文
posted @ 2019-01-30 14:08 _Zlrrr 阅读(112) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805345078067200 Suppose that all the keys in a binary tree are distinct positive integer 阅读全文
posted @ 2019-01-30 13:43 _Zlrrr 阅读(230) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805344222429184 After each PAT, the PAT Center will announce the ranking of institutions 阅读全文
posted @ 2019-01-30 12:09 _Zlrrr 阅读(389) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805343979159552 A clique is a subset of vertices of an undirected graph such that every 阅读全文
posted @ 2019-01-30 11:21 _Zlrrr 阅读(157) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805343043829760 This is a problem given in the Graduate Entrance Exam in 2018: Which of 阅读全文
posted @ 2019-01-30 10:48 _Zlrrr 阅读(181) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/994805343727501312 The lowest common ancestor (LCA) of two nodes U and V in a tree is the d 阅读全文
posted @ 2019-01-30 10:24 _Zlrrr 阅读(288) 评论(0) 推荐(0)
摘要: 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)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 87 下一页