aoikurokawa / rust-tcp

0 stars 0 forks source link

Kth Largest Element in a Stream #3

Open aoikurokawa opened 2 years ago

aoikurokawa commented 2 years ago
  1. 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 largest element in the sorted order, not the kth distinct element.

Implement KthLargest class:

aoikurokawa commented 2 years ago

Resources: https://www.youtube.com/watch?v=hOjcdrqMoQ8 https://www.youtube.com/watch?v=AE5I0xACpZs