Citadel Interview Question

given an array, find out three numbers such that their product is maximum.

Interview Answer

Anonymous

Oct 31, 2018

use two heap to find out the largest three numbers and two smallest numbers (consider negative values) and get the result

1