Q15
Consider the problem of reversing a singly linked list. To take an example, given the linked list below,
head -> [a] -> [b] -> [c] -> [d] -> [e] -> NULL
the reversed linked list should look like
head -> [e] -> [d] -> [c] -> [b] -> [a] -> NULL
Which one of the following statements is TRUE about the time complexity of algorithms that solve the above problem in space?
head -> [a] -> [b] -> [c] -> [d] -> [e] -> NULL
the reversed linked list should look like
head -> [e] -> [d] -> [c] -> [b] -> [a] -> NULL
Which one of the following statements is TRUE about the time complexity of algorithms that solve the above problem in space?
Show answer without attempting
Answer: A
