re: thank u, next: an introduction to linked lists VIEW POST

VIEW FULL DISCUSSION
 

This is awesome - learnt a lot and enjoyed the references along the way πŸ˜€

One question I have - in the remove_value() function because it changes the this.head value does that mean iterating it would start from the removal point?

How would you get it back to the start after removing a value of that is the case?

 

Thanks!! It only changes this.head if we are trying to remove the first value. Otherwise, only the node variables will change!

 
code of conduct - report abuse