โ† Western Digital questions

Maximum product of two numbers in an array in O(n) time

Filed under Western Digital

The question

Given an array of integers that may contain negative values, write a C program to find the maximum product of two numbers in O(n) time.

No write-up yet. Related questions below have one.

Related Western Digital questions

Collected from public candidate posts and coding forums. Updated Nov 2026.