Skip to content

Commit 2c2560a

Browse files
authored
Update sorting.md
1 parent dc630e8 commit 2c2560a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

notes/sorting.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -840,12 +840,12 @@ Step 3 (100s): [2 24 45 66 75 90 170 802]
840840

841841
**Complexity**
842842

843-
* **Time Complexity:** \$O(n \cdot k)\$
843+
* **Time Complexity:** $O(n \cdot k)$
844844

845-
* \$n\$ = number of elements
846-
* \$k\$ = number of digits (or max digit length)
845+
* $n$ = number of elements
846+
* $k$ = number of digits (or max digit length)
847847

848-
* **Space Complexity:** \$O(n + k)\$ (depends on the stable sorting method used, e.g., Counting Sort).
848+
* **Space Complexity:** $O(n + k)$ (depends on the stable sorting method used, e.g., Counting Sort).
849849

850850
* For integers with fixed number of digits, Radix Sort can be considered **linear time**.
851851

0 commit comments

Comments
 (0)