return to all data-structures

return to concepts

Singly-Linked List

Overview

When to use singly linked lists

Doubly-Linked List

Time Complexity

The following table describes time complexity for both singly-linked and doubly-linked lists.

Operation Time Complexity
Insertion at index 0 O(1)
Insertion at index n O(n)
Deletion at index 0 O(1)
Deletion at index n O(n)
Search O(n)
Access index n O(n)

Practice Questions

Check out GeeksforGeeks’ compilation of popular interview questions related to linked lists.


return to all data-structures

return to concepts