Skip to content
Snippets Groups Projects
Commit 1604b465 authored by Ukhanov Ilya's avatar Ukhanov Ilya
Browse files

Commit au cas ou

parent ad8c4206
Branches
No related merge requests found
No preview for this file type
......@@ -12,7 +12,8 @@ int main() {
affichertab(T1,5);
printf("\n");
triInsertion(T1,5);
//triInsertion(T1,5);
triFusion(T1, 5);
affichertab(T1,5);
......
......@@ -21,7 +21,7 @@ void triFusion(long* A, size_t size) {
}
void sousTriFusion(long* A, size_t first, size_t size) {
if(first<size-1){
if(first+1 <size){ // p < r - 1
size_t middle = floor((first+size)/2);
sousTriFusion(A, first, middle);
sousTriFusion(A, middle, size);
......
File added
File added
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment