Find minimum and second minimum element in array
Filed under Amantya Technologies
The question
Write code to find the minimum and second minimum elements from a given array with an in-place space-optimized solution.
No write-up yet. Related questions below have one.
Related Amantya Technologies questions
Collected from public candidate posts and coding forums. Updated Nov 2026.