Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function ins_vett(v,x)
- {
- var tmp;
- v.push(x); cur=v.lenght;
- for(i=cur-1;i>=0;i--)
- {
- if(v[i]>v[cur]){ tmp=v[i];v[i]=v[cur];v[cur]=tmp; cur--;}
- else{return v;}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement