From 434d0925c2bda9477bd2fb1bd2570f3b6e5c35d8 Mon Sep 17 00:00:00 2001 From: ashay96 <102476299+ashay96@users.noreply.github.com> Date: Sun, 27 Mar 2022 20:49:59 +0530 Subject: [PATCH] Update 3_linked_list.py The insert values should not clear the original linked list. --- data_structures/3_LinkedList/3_linked_list.py | 1 - 1 file changed, 1 deletion(-) diff --git a/data_structures/3_LinkedList/3_linked_list.py b/data_structures/3_LinkedList/3_linked_list.py index a6d9466..e5e4b5c 100644 --- a/data_structures/3_LinkedList/3_linked_list.py +++ b/data_structures/3_LinkedList/3_linked_list.py @@ -81,7 +81,6 @@ def remove_at(self, index): count+=1 def insert_values(self, data_list): - self.head = None for data in data_list: self.insert_at_end(data)
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: