From 6da0b79ce7670117709d40ba7038d0c2c618522c Mon Sep 17 00:00:00 2001 From: "S. M. Sajid Hasan Shanta" Date: Fri, 16 Sep 2022 05:25:18 +0600 Subject: [PATCH] Update singly_linked_list_exercise.py I think there is no need to add these 3 line of code. --- .../3_LinkedList/Solution/singly_linked_list_exercise.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/data_structures/3_LinkedList/Solution/singly_linked_list_exercise.py b/data_structures/3_LinkedList/Solution/singly_linked_list_exercise.py index cce871c..4220353 100644 --- a/data_structures/3_LinkedList/Solution/singly_linked_list_exercise.py +++ b/data_structures/3_LinkedList/Solution/singly_linked_list_exercise.py @@ -91,9 +91,6 @@ def insert_after_value(self, data_after, data_to_insert): if self.head is None: return - if self.head.data==data_after: - self.head.next = Node(data_to_insert,self.head.next) - return itr = self.head while itr: pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy