From 5d0ea91a7ee3d64d91237ea2c7f4dbeb56807c97 Mon Sep 17 00:00:00 2001 From: matheus73 Date: Fri, 30 Oct 2020 22:25:45 -0300 Subject: [PATCH] changed the test case to use deleteByIndex and deleteByValue --- Go/Data-Structures/linked-list/main.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Go/Data-Structures/linked-list/main.go b/Go/Data-Structures/linked-list/main.go index 176c7785..2a5ee1c1 100644 --- a/Go/Data-Structures/linked-list/main.go +++ b/Go/Data-Structures/linked-list/main.go @@ -111,10 +111,10 @@ func main() { mylist.prepend(node6) mylist.printListData() - // mylist.deleteWithValue(100) - // mylist.deleteWithValue(2) - mylist.deleteByIndex(2) + mylist.deleteWithValue(100) + mylist.deleteWithValue(2) mylist.printListData() + mylist.deleteByIndex(2) mylist.deleteByIndex(mylist.length - 1) mylist.printListData() emptyList := linkedList{}