Highest Product

Given an array of integers, return the highest product possible by multiplying 3 numbers from the array

Input:

array of integers e.g {1, 2, 3}

NOTE: Solution will fit in a 32-bit signed integer

Example:

[0, -1, 3, 100, 70, 50]

=> 70*50*100 = 350000

Interview Code Editor
Hints
  • Hint 1
  • Solution Approach
  • Complete Solution
3645 successful submissions.
Asked In:
  • Coursera
  • Amazon
Click here to jump start your coding interview preparation