Data structures | Sololearn: Learn to code for FREE!


Data structures

how do you implement a "destroy" method for a doubly linked list?


11/30/2017 7:04:06 PM


1 Answer

New Answer


If you're asking how do you clean up a linked list? You need to iterate through your list and and "delete" your nodes. You need to make sure you implement your destructors in your classes. Sorry for the short description. Here's a link to the delete operator documentation: Here is a link to Destructor documentation: