Pergunta de entrevista da empresa Google

Which is faster, bubble sort or quick sort?

Respostas da entrevista

Sigiloso

16 de jun. de 2018

In worst case they are both o(n^2) average case quick sort O(nlogn) and bubble sort is o(n^2) and quick sort O(nlogn). Bubble sort is only fast with small sets. But generally Quicksort is faster.

1

Sigiloso

16 de out. de 2017

quick sort

1