[LeetCode] 703. Kth Largest Element in a Stream - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/kth-largest-element-in-a-stream/ Kth Largest Element in a Stream - LeetCode Can you solve this real interview question? Kth Largest Element in a Stream - Design a class to find the kth largest element in a stream. Note that it is the kth largest element in the sorted order, not the kth distinct element. Implement KthLargest class: leetcode.com 문제 Design a class to f..
[LeetCode] 23. Merge k Sorted Lists - Java
·
알고리즘/LeetCode
https://leetcode.com/problems/merge-k-sorted-lists/description/ Merge k Sorted Lists - LeetCode Merge k Sorted Lists - You are given an array of k linked-lists lists, each linked-list is sorted in ascending order. Merge all the linked-lists into one sorted linked-list and return it. Example 1: Input: lists = [[1,4,5],[1,3,4],[2,6]] Output: [1,1,2, leetcode.com 문제 You are given an array of k link..
HYOJUN
'queue' 태그의 글 목록