Second largest distinct element in array with duplicates
Filed under Vymo
The question
Find the second largest distinct element in an array in O(n) time, handling duplicate elements such that if the array is [6,7,2,5,3,3,2,9], the second largest element should be 2.
No write-up yet. Related questions below have one.
Related Vymo questions
Collected from public candidate posts and coding forums. Updated Nov 2026.