Find the maximum product of two numbers in an array.
MediumProblem Statement
Find the maximum product of two numbers in an array.
Sample Input
[1, 2, 3, 4, 5]
Sample Output
20
Limits
Time: 2s · Memory: 256 MB
Find the maximum product of two numbers in an array.
[1, 2, 3, 4, 5]
20
Time: 2s · Memory: 256 MB