tags::
type:: Leetcode_Solution
in:: Algorithms MOC

approach 1 - brute force with heap

approach 2 - greedy