摘要:
https://pintia.cn/problem-sets/994805342720868352/problems/1071785301894295552 A proper vertex coloring is a labeling of the graph's vertices with col 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
https://pintia.cn/problem-sets/994805342720868352/problems/1038430130011897856 The lowest common ancestor (LCA) of two nodes U and V in a tree is the 阅读全文
摘要:
https://pintia.cn/problem-sets/994805342720868352/problems/1071785408849047552 In computer science, a heap is a specialized tree-based data structure 阅读全文
摘要:
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 阅读全文
摘要:
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. 阅读全文
摘要:
https://ac.nowcoder.com/acm/contest/327#question D.处女座与重修费 代码: #include <bits/stdc++.h> using namespace std; int N; int main() { scanf("%d", &N); int 阅读全文
摘要:
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 阅读全文
摘要:
https://leetcode.com/problems/assign-cookies/ Assume you are an awesome parent and want to give your children some cookies. But, you should give each 阅读全文