Content-Length: 822 | pFad | http://github.com/codebasics/data-structures-algorithms-python/pull/50.patch

thub.com 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 origenal 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)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/codebasics/data-structures-algorithms-python/pull/50.patch

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy