Search
⌘K

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

Amazon

Microsoft

Microsoft


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Late January, 2025

Microsoft

Microsoft

Intern

Implement heap sort

Mid January, 2025

Amazon

Amazon

Junior

Implement selection sort

Comments

Your account is free and you can post anonymously if you choose.