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_solutions/blob/main/1464-aximum-product-of-two-elements-in-an-array.md
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.
Download
0 formats
No download links available.
LeetCode 1464. Maximum Product of Two Elements in an Array | JSer - JavaScript & Algorithm | NatokHD