Skip to content
Snippets Groups Projects
Commit 6934a1dc authored by clm15@inf.ufpr.br's avatar clm15@inf.ufpr.br
Browse files

Particao arrumada


Signed-off-by: default avatarCristopher <clm15@inf.ufpr.br>
parent e299afd3
No related branches found
No related tags found
No related merge requests found
......@@ -94,7 +94,10 @@ int mediana (int *vet, int esq, int dir)
void Particao (int *vet, int esq, int dir, int *pos_pivo)
{
int i, j, aux, pivo, med = mediana(vet, esq, dir);
i = esq;
pivo = vet[med];
vet[med] = vet[esq];
vet[esq] = pivo;
i = esq+1;
j = dir;
while (i < j)
{
......
......@@ -3,6 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
int pesqseq (int *, int , int );
int pesqbin (int *, int , int );
void menor (int *, int *, int );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment