Amazon interview question

Sorting a list with multiple keys.

Interview Answer

Anonymous

30 Oct 2020

Used python's sort function and was able to provide primary, secondary and tertiary keys. Algorithm works on all test cases.