Professional Documents
Culture Documents
Using doubly linked lists, create a C# program that inserts the values 333 and 444 to the middle of the
existing list: 10, 20, 30, 40, 50, 60.
PSEUDOCODE
BEGIN
Initialize data = d
IF (head != null)
ENDIF
END Push
ENDIF
ENDIF
END InsertAfter
ENDIF
ENDIF
END InsertBefore
IF (head == null)
new node prev = null
return
ENDIF
ENDWHILE
END Append
Return
ENDIF
IF (head == del)
ENDIF
ENDIF
ENDIF
Return
END deleteNode
DECLARE printList
PRINT node.data
node = node.next
ENDWHILE
END printList
PRINT printList
END