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?
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!Ah I see, I read it wrong. Thanks for clarifying!
For sure!