Name: Anonymous 2011-09-24 23:11
let iom = index of max function and arr = array of ints
how does this make you feel?
for(i = arr.length-1; ( (m=iom(arr,i))>=0 && (j=arr[i])>=0 && (arr[i]=arr[m])>=0 && (arr[m]=j)>=0 ) && (--i)>0;){}how does this make you feel?