LinkedList
class LinkedList<T> : Iterable<T> , Collection<T> , MutableIterable<T> , MutableCollection<T> , Serializable, Cloneable
Functions
Link copied to clipboard
Link copied to clipboard
Checks whether the elements are present into the list Time complexity O(n^2)
Link copied to clipboard
Checks whether the list is not empty
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Adds an element to the first position in the list a.k.a the head Time complexity O(1)
Link copied to clipboard
Remove element after a node (remove the immediate next node). Time complexity O(1)
Link copied to clipboard
Link copied to clipboard
Remove the last element of the list Time complexity O(n)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard