Skip to content

Commit 40e986a

Browse files
committed
🎉
1 parent fc8f5ed commit 40e986a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

vocabulary.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,7 @@ int *copySubArray(int left, int right, int arr[]) {
356356
}
357357

358358
void mergeSort(int length, int arr[]) {
359-
/* sorts an array of integers using merge sort;
359+
/* sorts an array of integers in O(n log n) time;
360360
this function is given on the exam */
361361
int l, r, mid, idx, *left, *right;
362362
if (length <= 1) {
@@ -395,7 +395,7 @@ void mergeSort(int length, int arr[]) {
395395
}
396396

397397
void bubbleSort(int *arr, int len) {
398-
/* sorts an array of integers using bubble sort */
398+
/* sorts an array of integers in O(n²) */
399399
int i, j, change;
400400
for (i=0; i < len; ++i) {
401401
change=0;

0 commit comments

Comments
 (0)