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.
Asked at:
Salesforce
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Early March, 2026
Salesforce
Senior
Given an integer array nums, find three numbers whose product is maximum and return the maximum product.
Hello Interview Premium
Your account is free and you can post anonymously if you choose.