上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 87 下一页
摘要: 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)
摘要: https://leetcode.com/problems/kth-largest-element-in-an-array/ Find the kth largest element in an unsorted array. Note that it is the kth largest elem 阅读全文
posted @ 2019-01-28 21:49 _Zlrrr 阅读(95) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/kth-largest-element-in-a-stream/ Design a class to find the kth largest element in a stream. Note that it is the kth lar 阅读全文
posted @ 2019-01-28 20:54 _Zlrrr 阅读(134) 评论(0) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/1038430130011897856 The lowest common ancestor (LCA) of two nodes U and V in a tree is the 阅读全文
posted @ 2019-01-28 20:40 _Zlrrr 阅读(330) 评论(1) 推荐(0)
摘要: https://pintia.cn/problem-sets/994805342720868352/problems/1071785408849047552 In computer science, a heap is a specialized tree-based data structure 阅读全文
posted @ 2019-01-28 10:54 _Zlrrr 阅读(211) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/spiral-matrix-ii/ Given a positive integer n, generate a square matrix filled with elements from 1 to n2 in spiral order 阅读全文
posted @ 2019-01-27 14:28 _Zlrrr 阅读(105) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/spiral-matrix/ Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order. 阅读全文
posted @ 2019-01-27 14:26 _Zlrrr 阅读(142) 评论(0) 推荐(0)
摘要: https://ac.nowcoder.com/acm/contest/327#question D.处女座与重修费 代码: #include <bits/stdc++.h> using namespace std; int N; int main() { scanf("%d", &N); int 阅读全文
posted @ 2019-01-24 22:04 _Zlrrr 阅读(235) 评论(0) 推荐(0)
摘要: https://leetcode.com/problems/lemonade-change/ At a lemonade stand, each lemonade costs $5. Customers are standing in a queue to buy from you, and ord 阅读全文
posted @ 2019-01-22 12:16 _Zlrrr 阅读(205) 评论(0) 推荐(0)
上一页 1 ··· 25 26 27 28 29 30 31 32 33 ··· 87 下一页