Tags
Bubble Sort
Repeatedly swaps adjacent elements if they are in the wrong order.
Sort
Comparison
Stable Sort
Insertion Sort
Builds the sorted list incrementally by inserting elements in their correct order.
Sort
Comparison
Stable Sort
Left Bisect
Efficiently finds the first occurence of a target element in a sorted array by repeatedly halving the search space.
Search
Divide and Conquer
Binary Search
Linear Search
Sequentially scans the list to locate a target element.
Search
Merge Sort
Divides the list into halves, sorts them, and then merges them back together.
Sort
Divide and Conquer
Stable Sort
Merge Sort Iterative
Divides the list into halves, sorts them, and then merges them back together.
Sort
Divide and Conquer
Stable Sort
Queue
A data structure that stores elements in a first-in-first-out manner.
Data Structure
Right Bisect
Efficiently finds the last occurence of a target element in a sorted array by repeatedly halving the search space.
Search
Divide and Conquer
Binary Search
Selection Sort
Selects the smallest unsorted element and places it at the beginning.
Sort
Comparison
Unstable Sort
Stack
A data structure that stores elements in a last-in-first-out manner.
Data Structure