Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

Feedback on: irt.org FAQ Knowledge Base Q341, February 14, 2002 at 12:43:55:

You are here: irt.org | About | Feedback | 3592 [ previous next ]

Feedback on:
irt.org FAQ Knowledge Base Q341

Sent by
Arthur Goldstein on February 14, 2002 at 12:43:55:

Worth:
Worth reading

Length:
Just right

Technical:
Just right

Comments:
I think there is a bug in the code. Should it be --j instead of j-- in:

function myInsSort(arr,length) {
var j, i, v;
for (i=1, j=i, v=arr[i]; i<length; arr[j+1]=v, i++, j=i, v=arr[i])
while(j-- >= 0 && arr[j] > v)
arr[j+1]=arr[j];
}




Other feedback on 'irt.org FAQ Knowledge Base Q341' - show all

©2018 Martin Webb