Re: Search in Linked List



 DEVELOP > c-Plus-Plus > Re: Search in Linked List

LINK TO THIS PAGE  


rating :  0   |  0


  Page 1 of 1
Topic: DEVELOP > c-Plus-Plus
User: "major_tom3"
Date: 13 Oct 2003 09:33:53 AM
Object: Re: Search in Linked List
Depending on the container type, either of your strategies is possible;
but the point about a linked list (i.e. its definition) is that you can
only access an element from an adjacent element, since they are not
stored in a contiguous piece of memory. This means you can insert and
delete elements without 'shuffling along' the pre-existing ones.
So, your first strategy is the one.
Regards,
tom
--
Posted via http://dbforums.com
.

 

NEWER

pg.1232     pg.940     pg.716     pg.544     pg.412     pg.311     pg.234     pg.175     pg.130     pg.96     pg.70     pg.50     pg.35     pg.24     pg.16     pg.10     pg.6     pg.3     pg.1

OLDER