Question: USING PYTHON 3 Write normal_list() method in recursive mode. This is what I have for my code in the iterative format. You can also use
USING PYTHON 3 Write normal_list() method in recursive mode. This is what I have for my code in the iterative format. You can also use helper functions and default arguments. I am stuck on making it recursive, so I need help. Thanks!
def normal_list(self): """ Returns a list of results based on the linked list """ result = [] current = self.head while current is not None: result += [current.data] current = current.next return result
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
