Skip to content

Commit 8ff38ed

Browse files
committed
updated insertion sort
1 parent 021cf1c commit 8ff38ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arrays/question1.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
INSERTION SORT
33
Can be remembered as deck of cards taken one by one
44
5-
Best case:
5+
Worst case:
66
Time complexity (comparisions and movements): O(n^2)
77
8-
Worst case:
8+
Best case:
99
Time complexity: omega(n)
1010
1111
For both cases:

0 commit comments

Comments
 (0)