From charlesreid1

(Created page with "Basic linked list implementation with Python: https://charlesreid1.com:3000/cs/python/src/master/lists/linked-lists/LinkedList.py Questions that arose from this: * Constructo...")
 
m (Replacing charlesreid1.com:3000 with git.charlesreid1.com)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Basic linked list implementation with Python: https://charlesreid1.com:3000/cs/python/src/master/lists/linked-lists/LinkedList.py
==Types of linked lists==
 
The basic types of linked lists:
* Singly linked list - forward links only
* Doubly linked list - forward and backward links at each node
* Circular linked list - end node points to front node, more efficient use of memory
 
===Singly linked list===
 
See [[Linked Lists/Python/Single]]
 
Basic linked list implementation with Python: https://git.charlesreid1.com/cs/python/src/master/lists/linked-lists/LinkedList.py


Questions that arose from this:
Questions that arose from this:
Line 5: Line 16:
* Effectively handling exceptions? (best practices)
* Effectively handling exceptions? (best practices)
* Class organization, protection, etc.? (Node class - private? shared? how?)
* Class organization, protection, etc.? (Node class - private? shared? how?)
===Doubly linked list===
See [[Linked Lists/Python/Double]]
===Circular linked list===
See [[Linked Lists/Python/Circular]]
=Flags=
{{DataStructuresFlag}}
[[Category:Python]]
[[Category:Linked Lists]]
[[Category:Lists]]

Latest revision as of 03:37, 9 October 2019

Types of linked lists

The basic types of linked lists:

  • Singly linked list - forward links only
  • Doubly linked list - forward and backward links at each node
  • Circular linked list - end node points to front node, more efficient use of memory

Singly linked list

See Linked Lists/Python/Single

Basic linked list implementation with Python: https://git.charlesreid1.com/cs/python/src/master/lists/linked-lists/LinkedList.py

Questions that arose from this:

  • Constructor overloading
  • Effectively handling exceptions? (best practices)
  • Class organization, protection, etc.? (Node class - private? shared? how?)

Doubly linked list

See Linked Lists/Python/Double

Circular linked list

See Linked Lists/Python/Circular

Flags