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

preview_player
Показать описание
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!
Рекомендации по теме