ADD file via upload

master
pzs93xi8q 4 years ago
parent f27d282894
commit 529c6f5355

@ -0,0 +1,15 @@
void insert(int *a,int n)
{
int i,j,temp;
for(i=1;i<n;i++)
{
temp=a[i];
j=i-1;
while( j>=0&&temp<a[j] )
{
a[j+1]=a[j];
j--;
}
a[j+1]=temp;
}
}
Loading…
Cancel
Save