Amazon interview question

Find the greatest product using 3 numbers in an array.

Interview Answers

Anonymous

28 Feb 2018

How about sorting the array ?

1

Anonymous

18 Aug 2017

check for corner cases considering negative numbers.

1

Anonymous

6 May 2021

sort the array and do product for last 3 values in array