LTI Mindtree Campus Hiring 2026 | Peak Element Search & Valid Palindrome After One Deletion

Question · Posted Jun 2026

Problem 1 - Find the Peak Element (Local Maxima) Problem Statement You are given an integer array arr of size N. An element is considered a peak element if it is strictly greater than its neighboring elements. The first element is a peak if it is greater than its only adjacent element. The last element is a peak if it is greater than its only adjacent element. Any middle element is a peak if it is greater than both neighbors. ...

The full answer & interview discussion are available to premium members.

Log in Create a free account