As a first step, we check whether the prev_node is in the linked list using the ‘if’ statement. My understanding is if we have to check if prev_node is in linked list then we will have to traverse the entire linked list and check each node if it is == prev_node.
How come without using any loop we can confirm if the prev_node exists in the linked list or not ? Thanks!
Type your question above this line.