You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I use the below-insert method, I will give the input as insert(value, lengthOfTheList).
In this scenario, the value is added to the end of the list, but the tail is not changed to the end of the list.
In the above example, I add the value at the end of the list, but the tail is not changed to the end.
🐛 tail has another node.