What is the asymptotic worst-case running time for the following dynamic-set operations ?
Successor(L,x) for unsorted singly & doubly linked lists
Predecessor(L,x) for unsorted doubly linked list
L: list , x: pointer to an entry
(Actually this is part of the question 10-1 of the book : "Introduction to Algorithms, third edition" , I searched for the answer , the answer is O(n) but I couldn't find any explanation for it)