Find smallest and second smallest element
Filed under CarWale
The question
Find the smallest and second smallest element in an array.
No write-up yet. Related questions below have one.
Related CarWale questions
Collected from public candidate posts and coding forums. Updated Nov 2026.