Skip to main content
/Sorting/Bubble Sort
1 / 34
Speed
ENES
/
Big O NotationRecursionTwo PointersSliding WindowSpace ComplexityMemoizationGreedy vs DP
StackQueueLinked ListHash TableBinary Search TreeHeap
Bubble SortSelection SortInsertion SortQuick SortMerge SortHeap SortCounting SortRadix SortShell Sort
Binary SearchLinear SearchJump SearchInterpolation Search
Breadth-First SearchDepth-First SearchDijkstra's AlgorithmPrim's AlgorithmTopological Sort
Fibonacci DPKnapsack 0/1Longest Common Subsequence
N-Queens ProblemSudoku SolverMaze Pathfinding
Tower of Hanoi
38 algorithms·by midudev
38
27
43
3
9
82
10
0
1
2
3
4
5
6
Step 1:Initial array. Bubble Sort will compare adjacent elements and swap them if needed.
Variables
n==7
array==[38, 27, 43, 3, 9, 82, 10]