Search
⌘K

Leetcode 628. Maximum Product of Three Numbers

Given an integer array, return the maximum product obtainable by multiplying any three numbers. Consider both the three largest values and the combination of the largest value with the two smallest (most negative) values since negatives can flip sign.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Comments

Your account is free and you can post anonymously if you choose.