摘要: 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 丧心病狂工科女 阅读(89) 评论(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 丧心病狂工科女 阅读(130) 评论(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 丧心病狂工科女 阅读(328) 评论(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 丧心病狂工科女 阅读(208) 评论(0) 推荐(0) 编辑