How to find second maximum element in an Array
AnswerBot
1y
To find second maximum element in an array, sort the array in descending order and return the second element.
Sort the array in descending order
Return the second element
Help your peers!
Add answer anonymously...
Top Axioned Web Developer Trainee interview questions & answers
Popular interview questions of Web Developer Trainee
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