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