On Tue, May 4, 2010 at 8:11 PM, Greg King <greg.king4@verizon.net> wrote: > (Only one link-pointer is needed in each node.) For a singly-linked list, sure, but this is a doubly-linked list. I don't know whether the double link is needed for this particular application, but such lists have a proud computer science tradition. :) Still, Payton, Marc is right: the best way to get a handle on this sort of manipulation is to draw on a piece of paper with boxes and arrows and step through the code, playing dumb and doing just exactly what it says, no more and no less. Try the simple cases - empty list, one node, two nodes - and any problems should quickly become obvious. -- Mark J. Reed <markjreed@gmail.com> ---------------------------------------------------------------------- To unsubscribe from the list send mail to majordomo@musoftware.de with the string "unsubscribe cc65" in the body(!) of the mail.Received on Wed May 5 02:33:56 2010
This archive was generated by hypermail 2.1.8 : 2010-05-05 02:33:58 CEST