What is the time complexity improvement of skip lists from linked lists in insertion and deletion?

Q & ACategory: Data StructureWhat is the time complexity improvement of skip lists from linked lists in insertion and deletion?
Admin Staff asked 4 years ago

What is the time complexity improvement of skip lists from linked lists in insertion and deletion?
a) O(n) to O(logn) where n is number of elements
b) O(n) to O(1) where n is number of elements
c) no change
d) O(n) to O(n2) where n is number of elements

1 Answers
Admin Staff answered 4 years ago

a) O(n) to O(logn) where n is number of elements