Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

oh jesus

Name: Anonymous 2011-09-24 23:11

let iom = index of max function and arr = array of ints

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?

Name: Anonymous 2011-09-24 23:27

j=arr[i])>=0

and then

(arr[m]=j)>=0

is redundant. It's actually not that hard to follow. A long chain of && isn't much worse than a long chain of ;

Name: Anonymous 2011-09-24 23:40

>>1
index of max function
what does this even mean?

Name: Anonymous 2011-09-25 1:10

(and is a variatic form in Lisps isn 't that cool?)

Don't change these.
Name: Email:
Entire Thread Thread List