educative.io

Deletion in DLL sample implementation

Hi there, I am not quite sure what is the point of “and current_node.previous_element != None” Line 16, since it will not enter the for loop when we delete the head node in the first time?

Exactly, I’m stuck at that point too. Lets hope we see a reply soon.