Question: The following Linked List deletion code has not been tested on some edge cases. Which edge cases does it fail? def delete _ last _
The following Linked List deletion code has not been tested on some edge cases. Which edge cases does it fail?
def deletelastelementself:
currentptr self.head
while currentptrnextptrnextptr is not None:
currentptr currentptrnextptr
currentptrnextptr None
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
