Find Second Largest and Second Smallest Elements in Array
Given an array of integers, write a function to find and return both the second largest and second smallest elements. Handle edge cases where the array may not have enough unique elements.
Asked at:
Amazon
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Late October, 2025
Amazon
Mid-level
Hello Interview Premium
Your account is free and you can post anonymously if you choose.