Birlasoft OA 2025 | Find Peak Element & Shift String Characters
Question · Posted Jun 2026
Problem 1 - Telemetry Data Packet Verification Problem Statement You are given an integer array sensorReadings of size N. A peak element is an element that is strictly greater than its adjacent elements. For boundary elements, compare only with their single adjacent element. Return the index of any peak element. If multiple peaks exist, returning any one of them is acceptable. Constraints Constraint 1 ≤ N ≤ 105 -231 ≤ sensorReadings[i] ≤ 231 - 1 Adjacent elements are always different. ...
The full answer & interview discussion are available to premium members.
Log in Create a free account