A collection of methods on a Linked List Class
- Create a new Node
- Have that node point to whatever head is pointing at
- Reassign head to equal the new node
- Big O:
- Time: O(1)
- Space: O(1)
- Declare a variable called current equal to head
- Use a while loop to traverse the list
- On each node, check if its the target
- Return true if its found
- Return false if while loop doesnt return true
- Big O:
- Time: O(n)
- Space: O(1)
- Declare a variable to store a string
- Use a while loop to traverse the list
- On each node, add the value in string format
- Return the string at the end
- Big O:
- Time: O(n)
- Space: O(1)
- Use a while loop to traverse all the way to the end
- Make the last node's next property equal to the new node
- Big O:
- Time: O(n)
- Space: O(n)
- Use a while loop to traverse the list
- If the current value equals the target value
- Point the new Node to whatever current is pointing to
- Point the current node to the new node
- Big O:
- Time: O(n)
- Space: O(1)
- Use a while loop to traverse the list
- If the currents next value equals the target value
- Point the new Node to whatever current is pointing to
- Point the current node to the new node
- Big O:
- Time: O(n)
- Space: O(1)
- use a counter variable and increment on each node traversal
- subtract the count from the list length and traverse that amount of time through the list again
- return the value of where the traversal stops
- Big O:
- Time: O(n)
- Space: O(1)
Daniel Dills, Wondwosen Tsige, Prabin Singh, Michael Ryan

