feat: Initial commit

This commit is contained in:
2024-03-22 17:14:57 +01:00
parent dc83234df1
commit db9bafe755
45 changed files with 1996 additions and 0 deletions

26
TemiEsame/prodCartOrd.c Normal file
View File

@@ -0,0 +1,26 @@
#include <string.h>
#include <stdio.h>
void insertionSort(int *v1, int d1) {
int t = 0;
for (int i = 1; i < d1; i++) {
t = v1[i];
int j = i -1;
while (j >= 0 && v1[j]>t) {
v1[j+1] = v1[j];
j--;
}
v1[j+1] = t;
}
}
void prodCartOrd(int *v1, int d1, int *v2, int d2) {
insertionSort(v1, d1);
insertionSort(v2, d2);
}