Leetcode 912. Sort an Array
Sort an integer array in ascending order without using built-in sort routines, achieving O(n log n) time and minimal extra space; input size is up to 5×10^4 with values in the range ±5×10^4.
Asked at:
Amazon
Microsoft
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Late January, 2025
Intern
Implement heap sort
Mid January, 2025
Junior
Implement selection sort
Hello Interview Premium
Your account is free and you can post anonymously if you choose.