Please enable JavaScript.
Coggle requires JavaScript to display documents.
linear - Coggle Diagram
linear
stack
-
-
linked list push -> newItem->next = top,
top = newItem
linked list pop -> tmp = top, top = top->next, delete tmp
-
-
-
-
-
list insertion
list size: N
insert(i, node*) -> i [0, N]
corner case: empty list
at start 0 and end N-1
at N
-
-
-
-