CUST 1500H Lecture Notes - Lecture 3: Linked List

56 views3 pages

Document Summary

Generic list meaning it will be able to store different types. Class list < t > : ilist < t > ***who ever inherits an interface must implement those methods. A = 0 1 2 3 4 5 6 7 indices. Return true of false if count is = to zero. List p; p. item = 6, p = p next; x = p. item. Saying q = q. next is similar to saying i++ or i=i + 1; q. next = q. next. next ( this skips one of the nodes in the linked list)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents