โ† Zoho questions

Find the second maximum in an array

Filed under Zoho

Given an array of integers, find and return the second maximum element. Handle cases with fewer than two elements or arrays with duplicate maximum values appropriately.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Zoho questions

Collected from public candidate posts and coding forums. Updated Nov 2026.