Implemented merge sort

This commit is contained in:
MarcUs7i 2025-05-08 17:02:26 +02:00
parent edca11bb96
commit c78cc298c5
2 changed files with 66 additions and 5 deletions

View file

@ -3,7 +3,7 @@
* ---------------------------------------------------------
* Exercise Number: S06
* Title: Insertion sort implementation
* Author: */<your name>;/*
* Author: Marc Tismonar
* ----------------------------------------------------------
* Description:
* Implements the merge sort strategy
@ -24,7 +24,7 @@
* @param criterion The pointer to the function that implements the sorting criterion.
* That function accepts two integer parameters and returns a boolean value.
*/
void merge_sort_list(<params>);
void merge_sort_list(IntList list, criterion_fn criterion);
/**
* Sorts the given array according to the merge sort strategy.
@ -34,6 +34,6 @@ void merge_sort_list(<params>);
* @param criterion The pointer to the function that implements the sorting criterion.
* That function accepts two integer parameters and returns a boolean value.
*/
void merge_sort_array(<params>);
void merge_sort_array(int array[], int length, criterion_fn criterion);
#endif