employer cover photo
employer logo
employer logo

Amazon Web Services

Part of Amazon

Is this your company?

Amazon Web Services Interview Question

Coding sample: Given a randomized list of numbers, how can you retrieve the second smallest and second largest?

Interview Answer

Anonymous

Oct 28, 2022

Pseudo-code a merge sort or bubble sort algorithm and retrieve items 1 (second smallest) and N-2 (second largest).