@Dave: What do you say about freeing the circular list without traversing it.
On Fri, Jun 11, 2010 at 10:36 PM, Dave <dave_and_da...@juno.com> wrote: > Break the link between the first and second items in each list. Link > the first item in the first list to the second item in the second > list, and link the first item in the second list to the first item in > the first list. > > The traversal is from the first item of the first list, through the > second list, starting with the second item and ending with the first > item, and then through the remainder of the first list starting at the > second item and ending with the first item (if it is correct to say > that you end traversing a circular list). > > Dave > > On Jun 11, 2:53 am, Raj N <rajn...@gmail.com> wrote: > > Hi, > > I came across this statement that using circular lists, concatenation > > can be done without traversing either list. The same case with freeing > > the entire list. > > Can someone elaborate on this ? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algoge...@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com<algogeeks%2bunsubscr...@googlegroups.com> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algoge...@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.