Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

Feedback on: irt.org FAQ Knowledge Base Q341

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


Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 21st December 2007. Maintained by: Martin Webb
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.