Google Software Developer Mock Interview

Practice 30 Google Software Developer interview questions covering algorithms, system design, and coding challenges.

Question 9 of 30

Google software developers use a variety of different sorting algorithms. Tell me the difference between a Comparison and Non-Comparison Sorting Algorithm?

  • How to Answer

  • Example Answer

  • Community Answers

William Swansen
William Swansen

William Swansen has worked in the employment assistance realm since 2007. He is an author, job search strategist, and career advisor who helps individuals worldwide and in various professions to find their ideal careers.

This is a common Google interview question asked of software developers. This question, believe it or not, doesn't have an easy or unambiguous answer. On the one hand, the speed of sorting can depend on the environment in which the sorting is done, and on the other hand, it can depend on the type of items that are sorted and the distribution of these particular items. For example, if you are sorting an extensive database that cannot fit into memory all at once, this would be quite different from sorting an array of 100 integers. Adding to that, not only will the implementation of an algorithm be quite different, but it may even be that of the same algorithm. It might also help to know the five Sorts that will likely be brought up in an interview. They are: Quick Sort, Insertion Sort, Shell Sort, Heap Sort, and Merge Sort. Study them and research examples of how they are used and the differences between them. I will give examples that you can use here as well.

Unlock All 30 Google Questions

Prepare with questions that reflect Google's rigorous technical interview process.

Get Started