Skip to content
This repository has been archived by the owner on May 29, 2024. It is now read-only.

docs: add bubble sort #346

Merged
merged 3 commits into from
Jun 8, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
error check
  • Loading branch information
Vedant488 committed Jun 8, 2021
commit 4d78b904296283df4b00b320e8eb89945169e382
4 changes: 2 additions & 2 deletions docs/en/Sorting/Bubble-Sort.md
Original file line number Diff line number Diff line change
@@ -6,8 +6,8 @@ Bubble Sort also known as Sinking Sort is the simplest sorting algorithm. It swa

1. Compares the first element with the next element.
2. If the first element is larger than the next element then the elements are swapped.
3. Step 2 is peformed untill the selected number is put to its correct position then the next element is compared.
4. Multiple passes are made untill the sorting is completed.
3. Step 2 is performed until the selected number is put to its correct position then the next element is compared.
4. Multiple passes are made until the sorting is completed.

## Example