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
In order to construct a "doubly" linked list while inserting, new element and old element's prev pointer have to get updated.
Solution:
In doublylinkedlist.go,
Line 262, add:
newElement.prev = beforeElement
Line 266, add:
oldNextElement.prev = beforeElement
Line 271, add:
newElement.prev = beforeElement
Line 274, add:
oldNextElement.prev = beforeElement
The text was updated successfully, but these errors were encountered:
In order to construct a "doubly" linked list while inserting, new element and old element's prev pointer have to get updated.
Solution:
In doublylinkedlist.go,
The text was updated successfully, but these errors were encountered: