filmov
tv
LeetCode #1464. Maximum Product of Two Elements in an Array (Easy)

Показать описание
Straightforward, simple implementation of PriorityQueue (Heap).
Had to make my own custom Comparator, since I didn't remember the Sort Descending library constant for Comparator.
Got it on the first try, with no errors!
Had to make my own custom Comparator, since I didn't remember the Sort Descending library constant for Comparator.
Got it on the first try, with no errors!