[go: nahoru, domu]

Linked list: Difference between revisions

Content deleted Content added
m Reverted 1 edit by 14.139.114.4 using STiki
Line 430:
 
===Speeding up search===
Don't read anything .. it may be wrong.
 
Finding a specific element in a linked list, even if it is sorted, normally requires O(''n'') time ([[linear search]]). This is one of the primary disadvantages of linked lists over other data structures. In addition to the variants discussed above, below are two simple ways to improve search time.