摘要:
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 阅读全文