โ† Medlife questions

Maximum product of two elements in array

Filed under Medlife

The question

Given an array, find the maximum product of two elements in O(n) time and O(1) space.

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

Related Medlife questions

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