Question bank › Arrays
Dsa Arrays Medium

Maximum Product of Three Numbers

Given an integer array, find three numbers such that their product is maximum and return the maximum product. Input: The first line contains an integer n (3 <= n <= 1000). The second line contains n integers. Output: An integer representing the maximum product of any three numbers in the array. Example: Input: 5 1 2 3 4 5 Output: 60

Key concepts

arrayssortingproduct

Practise this out loud — free

Start a mock interview on THIS exact question — a voice AI interviewer opens with it, pushes back like a real onsite, then hands you an instant scorecard.

🎙 Practise this question now
Part of InterviewLab's verified interview question bank. We show the prompt and concepts to practise with — never a copy-paste solution.