SE250:lab-7:kkan048

From Marks Wiki
Revision as of 05:20, 3 November 2008 by Mark (Sọ̀rọ̀ | contribs) (3 revision(s))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

I insert 7 elements [4,3,5,2,6,1,7] and i insert 3 as a first element.

     1
   2
 3
4 (*)
 5
   6
     7

i used "right" command

     1
   2
 3
4
 5 (*)
   6
     7

it point to the right element of the current node.

command "left"

     1
   2
 3
4
 5
   6
     7

Since there is no left element of the current node [5].pointer (*) is missing.