Explore Algorithms
Array
Binary search is a fast search algorithm with run-time complexity of O(log n). This search algorithm works on the principle of divide and conquer.
Binary search in a rotated array is a variation of the binary search with run-time complexity of O(log n). This search algorithm works on the principle of divide and conquer.
Bubble sort is a simple sorting algorithm that repeatedly steps through the list, compares adjacent elements and swaps them if they are in the wrong order.
Insertion sort is a simple sorting algorithm that builds the final sorted array one item at a time.