filmov
tv
LeetCode #1464. Maximum Product of Two Elements in an Array (Easy)
![preview_player](https://i.ytimg.com/vi/XcDyG4NHi4I/maxresdefault.jpg)
Показать описание
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!