摘要: 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)