int *entrelacement(int *A, int *B, int taille) { int *R = new int[taille * 2]; for (int i=0; i<taille; i++) { R[i * 2] = A[i]; R[i * 2 + 1] = B[i]; } return R; }
- Monday
- December 23rd, 2024
- Ajouter un cours
int *entrelacement(int *A, int *B, int taille) { int *R = new int[taille * 2]; for (int i=0; i<taille; i++) { R[i * 2] = A[i]; R[i * 2 + 1] = B[i]; } return R; }