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