How do you implement the code for a function that counts the elements in a linkedlist?

For trailer and header Nodes, where do the variables exist?
How do you code the trailer and header?
Inside the constructor only

What is the code to insert an item into a header/footer ordered linkedlist?
How does it differ from a list without headers?
without a header we have to check if curr and prev are null etc..
With headers, that additional code is no longer necessary

How do you delete a value by key with a linkedlist with header files?
How does this differe for an ordered/unordered list?
For unordered-check if curr is not the dummy trailer as well
add to while loop: prev.next.next != null

What is a circular linked list and why use it?
How it could be useful:
Stack - where are new items added?
New elements are added at the top
LIFO - Last in first out
FILO - First in last out
Queue - where are new items added
Added to the back
FIFO - first in, first out
LILO - last in, last out
What are the stack main operations?
What is the text representation of a stack?
[5 7 3 >,
[ represents the bottom
> represents the top

In general how do you implement a stack with an array?
What is the code for the class implementation of a Stack using an array?

Draw the ?variable record? diagram for a stack using an array

In general, how would you implement a stack using a linkedlist
What is the code for the class implementation of a stack using a linkedlist

Draw the ?variable record? for stack using a linkedlist

What is the pseudo code for implementing the bracket matching example

What is the text representation of a queue
< 7 3 4 <
the 7 would be at the front, the 4 would be at the end
angle brackets point in the direction that items move through the queue
What are queue basic operations?
ADT Queue - LinkedList
Draw a general linkedlist style 1 using both a front and end pointer

What is the class code for a queue linked list style 1 (front and end pointer)

Queue - Linkedlist style 1 - front and end pointer
Draw a ?varaible record? of what the implementation looks like

Queue - LinkedList Style 2 (circular)
Draw the implementation of a queue using a circular linkedlist

Queue - LinkedList Style 2 (circular)
Draw the general implementation of a queue using a circular linkedlist to Enqueue(enter) an item.
