peak element in array
AnswerBot
5mo
A peak element in an array is an element that is greater than or equal to its neighbors.
Iterate through the array and check if the current element is greater than its neighbors.
If the element at index...read more
Anonymous
5mo
class Solution { public List findPeaks(int[] n) { ArrayList a=new ArrayList<>(); for(int i=1;i
Help your peers!
Add answer anonymously...
Top Calibraint Software Developer interview questions & answers
Popular interview questions of Software Developer
Top HR questions asked in Calibraint Software Developer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app