Find max and second max element
Filed under Zebra Technologies
The question
Find the maximum and second maximum element in an array without using sorting or built-in functions, with O(n) time and O(1) space complexity.
No write-up yet. Related questions below have one.
Related Zebra Technologies questions
Collected from public candidate posts and coding forums. Updated Nov 2026.