Problem
703. Kth Largest Element in a Stream
Java
priority queue - Java collections framework
1 | import java.util.PriorityQueue; |
Submission Detail
- 10 / 10 test cases passed.
- Runtime: 17 ms, faster than 49.28% of Java online submissions for Kth Largest Element in a Stream.
- Memory Usage: 44.3 MB, less than 60.24% of Java online submissions for Kth Largest Element in a Stream.