please
This commit is contained in:
parent
6d360370d8
commit
ac15f5270e
@ -73,9 +73,17 @@ void vypisovac(int vypis[SIZE], int input[SIZE], int size){
|
|||||||
}
|
}
|
||||||
else if (counter>=count && i>(size/2) || vypis[i]<count-1)
|
else if (counter>=count && i>(size/2) || vypis[i]<count-1)
|
||||||
{
|
{
|
||||||
|
if (input[vypis[i]]>input[vypis[i-1]])
|
||||||
|
{
|
||||||
|
count = ownPow(2,i)/2;
|
||||||
|
counter = 0;
|
||||||
|
space++;
|
||||||
|
}
|
||||||
|
else{
|
||||||
count = ownPow(2,size-i-1)/2;
|
count = ownPow(2,size-i-1)/2;
|
||||||
counter = 0;
|
counter = 0;
|
||||||
space--;
|
space--;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
counter++;
|
counter++;
|
||||||
|
Loading…
Reference in New Issue
Block a user