Question bank › Arrays
Dsa Arrays Medium

Adjacent Product

Given an array of integers, find the maximum product of two adjacent integers in the array. If the array has less than two elements, return 0. Input Format: - A single line containing space-separated integers. Output Format: - A single integer representing the maximum product of adjacent integers. Example: Input: 2 3 5 1 6 Output: 30

Key concepts

arraysproductiteration

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.