mirror of
https://github.moeyy.xyz/https://github.com/TheAlgorithms/C.git
synced 2023-10-11 15:56:24 +08:00
Update binary_insertion_sort.c
This commit is contained in:
parent
e5dad3fa8d
commit
022b2c2aac
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user