Garbage Collection
1 min readJun 7, 2020
Problem
We may have the following scenario when deleting a singly linked list or doubly linked list: “In order to delete a node from linked List, I am just pointing to the next pointer”
Will the not pointed elements be deleted by itself or should we pay extra attention?
Solution
A quick answer can be found HERE
A more comprehensive answer can be found HERE.
Python garbage collection
Python garbage collection can be found HERE.
Thanks for reading and I hope it is helpful.