Sorting
Algorithms that arrange elements in a specific order — fundamental to computer science
Bubble Sort
Easy
Sort an array by repeatedly swapping adjacent elements that are in the wrong order
Visualize
Selection Sort
Easy
Sort an array by repeatedly finding the minimum element and placing it at the beginning
Visualize
Insertion Sort
Easy
Build a sorted portion by inserting each element into its correct position one at a time
Visualize
Iterative Merge Sort
Medium
Sort an array using bottom-up merge operations without recursion
Visualize
Heap Sort
Medium
Sort an array by building a max heap and repeatedly placing the largest element at the end
Visualize
Quick Sort
Medium
Sort an array using divide-and-conquer by partitioning around a pivot element
Visualize