diff --git a/linked_lists/README.md b/linked_lists/README.md index 6d61fb2..2057935 100644 --- a/linked_lists/README.md +++ b/linked_lists/README.md @@ -2,6 +2,14 @@
+* unlike an array, a list does not provide constant time access to an index (as it needs to interact through all k elements), however addition and removal of elements are constant time. +* to remove a node you set `prev.next` equal to `node.next`. if it's a double list, you also update `node.next` with `node.next.prev` to `node.prev` (and deallocate the memory). + + +
+ +---- + ### `LinkedListFIFO.py`