exp 14: correct wrong algorithm name
Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
3
14.c
3
14.c
@@ -1,4 +1,3 @@
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
|
||||
void shell_sort(int arr[], int n) {
|
||||
@@ -22,7 +21,7 @@ int main() {
|
||||
const int SIZE = 5;
|
||||
|
||||
int arr[] = {93, 110, 12398, -5, 2};
|
||||
printf("Insertion Sort on: ");
|
||||
printf("Shell Sort on: ");
|
||||
display(arr, SIZE);
|
||||
shell_sort(arr, SIZE);
|
||||
display(arr, SIZE);
|
||||
|
Reference in New Issue
Block a user