โ† Myntra questions

Find max and second max with minimum comparisons

Filed under Myntra

The question

Find the maximum and second maximum elements from a set of numbers using the minimum possible number of comparisons.

No write-up yet. Related questions below have one.

Related Myntra questions

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