What are they?

They are Data Structures - Lists specifically - where objects are arranged in Linear Order. A linked list comes in nodes. These are tuples of data. The first bit is the value and the second is where the next bit of data is stored in (Computer) Memory Conceptually (I.E. it’s address.)

Doubly Linked List:

Same idea, but it refers to the next address, the current value and the previous address.

Time Complexity:

  • .get() and .set() Because you have to iterate over each item individually to find a given item, time complexity is
  • .cons() β†’ always
  • .insert(i, x) and .delete(i) have worst case. But if you already know the address of i-1, then it would be .