Tap here to switch tabs
Problem
Submissions

Problem: Maximum Product of Three Numbers

med
30 min
Try to solve the Maximum Product of Three Numbers problem.

Statement

Given an integer array nums, identify three elements whose product is the largest possible, and return that maximum product.

Constraints:

  • 3≤3 \leq nums.length ≤104\leq 10^4

  • −1000≤-1000 \leq nums[i] ≤1000\leq 1000

⋮
Tap here to switch tabs
Problem
Submissions

Problem: Maximum Product of Three Numbers

med
30 min
Try to solve the Maximum Product of Three Numbers problem.

Statement

Given an integer array nums, identify three elements whose product is the largest possible, and return that maximum product.

Constraints:

  • 3≤3 \leq nums.length ≤104\leq 10^4

  • −1000≤-1000 \leq nums[i] ≤1000\leq 1000