Comparisons
Everything on SkillVeris tagged Comparisons — collected across the glossary, study notes, blog, and cheat sheets.
4 resources across 2 libraries
Study Notes(1)
Interview Questions(3)
What is Selection Sort?
Selection sort repeatedly scans the unsorted portion of an array to find the minimum element and swaps it into place at the front, giving an O(n²) comparison-b…
What is Bubble Sort?
Bubble sort repeatedly steps through an array comparing each pair of adjacent elements and swapping them if they are out of order, so on every full pass the la…
Stable vs Unstable Sort: What is the Difference?
A stable sort preserves the original relative order of elements that compare as equal on the sort key, while an unstable sort makes no such guarantee and may r…