Term
O(1): constant time
The operation takes the same number of steps whatever the size of the data. A list of 10 nodes and a list of 10 million take the same time.
The lesson that explains this term
Lessons that use this term
3.0Introduction to linked lists3.1.4Inserting at the end3.1.5Inserting at a position3.1.6Inserting at the head3.1.7Deleting from the end3.1.8Deleting from the head3.1.9Deleting from the middle3.1.11Reversing a linked list (iterative)3.1.12Reversing a linked list (recursive)3.2.1What is a doubly linked list?3.2.2Inserting at the head3.2.3Inserting at the end