Posts by Lucas Souza • 3 points
1 post
-
0
votes1
answer226
viewsQ: Trouble sorting code with Shellsort
#include <stdio.h> typedef struct { int id_submissao; int tempo; int id_equipe; int id_problema; char status; } Linha; void shellSort(Linha *v, int n) { int i = (n - 1) / 2; int chave, k, aux;…