Hi ,
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.
Course: https://www.educative.io/collection/10370001/5474278013140992
Lesson: https://www.educative.io/collection/page/10370001/5474278013140992/5664309378023424