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
Function delete_from_list is not working correctly.
It should delete a certain node of value n in a linked list only but the implemented one skips all nodes before the node to be deleted and then the list starts from the next node.
example:
1->2->3->4->5
list = delete_from_list(list, 3)
Expected Result: 1->2->4->5
Actual Result: 4->5
The text was updated successfully, but these errors were encountered:
Function delete_from_list is not working correctly.
It should delete a certain node of value n in a linked list only but the implemented one skips all nodes before the node to be deleted and then the list starts from the next node.
example:
1->2->3->4->5
list = delete_from_list(list, 3)
Expected Result: 1->2->4->5
Actual Result: 4->5
The text was updated successfully, but these errors were encountered: