Skip to content

Commit 9916fa6

Browse files
djeadaCopilot
andauthored
Update notes/sorting.md
Co-authored-by: Copilot <[email protected]>
1 parent 370d16d commit 9916fa6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

notes/sorting.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,7 @@ Sorted! ✅
177177

178178
**Optimizations**
179179

180-
* **Early Exit**: If in a full pass **no swaps occur**, the array is already sorted, and the algorithm can terminate early.
181-
* This makes Bubble Sort’s **best case** much faster (\$O(n)\$).
180+
* This makes Bubble Sort’s **best case** much faster ($O(n)$).
182181

183182
**Stability**
184183

0 commit comments

Comments
 (0)