Update binary_insertion_sort.c

This commit is contained in:
DevanshPaliwal 2023-10-03 11:37:11 +05:30 committed by GitHub
parent e5dad3fa8d
commit 022b2c2aac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -38,7 +38,7 @@ void insertionSort(int *arr, int size)
{
j = i - 1;
key = arr[i];
/* Use binrary search to find exact key's index */
/* Use binary search to find exact key's index */
index = binarySearch(arr, key, 0, j);
/* Move all elements greater than key from [index...j]
* to one position */