Can you name some common sorting algorithms?

Quick Overview

Asks you to name the common sorting algorithms and say how they differ. Tests knowledge of best, average and worst-case running time, extra space, stability, non-comparison sorts such as counting and radix sort, and what standard libraries use in practice.

Can you name some common sorting algorithms?

Role: Software Engineer

Category: Software Engineering Fundamentals

Difficulty: easy

Interview Round: Other

Can you name some common sorting algorithms? ```hint Go past the names Organize your list by running time and by whether the algorithm compares elements at all. For each one, be ready to say whether it is stable and how much extra memory it needs. ``` ### What a Strong Answer Covers - The standard comparison sorts, each with a one-line description of how it works. - Best, average and worst-case running time and extra space for each. - Which algorithms are stable and which sort in place. - Non-comparison sorts and the conditions under which they beat $O(n \log n)$. - What standard libraries use in practice and why. ### Follow-up Questions - Why can no comparison sort beat $O(n \log n)$ in the worst case? - Which algorithm would you choose for data that is already nearly sorted, and why? - How do you protect quicksort from its quadratic worst case? - You need to sort 10 GB of records on a machine with 1 GB of memory. How do you do it?

Overview: Asks you to name the common sorting algorithms and say how they differ. Tests knowledge of best, average and worst-case running time, extra space, stability, non-comparison sorts such as counting and radix sort, and what standard libraries use in practice.

General logo
General
Nov 24, 2026
easySoftware EngineerOtherSoftware Engineering Fundamentals
0
0

Can you name some common sorting algorithms?

What a Strong Answer Covers Guidance

  • The standard comparison sorts, each with a one-line description of how it works.
  • Best, average and worst-case running time and extra space for each.
  • Which algorithms are stable and which sort in place.
  • Non-comparison sorts and the conditions under which they beat O(nlog⁡n)O(n \log n) .
  • What standard libraries use in practice and why.

Follow-up Questions Guidance

  • Why can no comparison sort beat O(nlog⁡n)O(n \log n) in the worst case?
  • Which algorithm would you choose for data that is already nearly sorted, and why?
  • How do you protect quicksort from its quadratic worst case?
  • You need to sort 10 GB of records on a machine with 1 GB of memory. How do you do it?