LeetCode 1464. Maximum Product of Two Elements in an Array | JSer - JavaScript & Algorithm

Опубликовано: 20 Октябрь 2024
на канале: JSer
344
5

LeetCode 1464. Maximum Product of Two Elements in an Array | JSer - JavaScript & Algorithm

Special case for top k problems. we could handle by ourself if k is 2, or use a Priority Queue

Here is my code: https://github.com/JSerZANP/leetCode_...

Hi I'm a JavaScript engineer who is not good at algorithms,
and currently practicing leetCode online. If you are interested, maybe we can learn together.