Skip to content

Commit

Permalink
changed the test case to use deleteByIndex and deleteByValue
Browse files Browse the repository at this point in the history
  • Loading branch information
Matheus73 committed Oct 31, 2020
1 parent bdb5f2d commit 5d0ea91
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Go/Data-Structures/linked-list/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down

0 comments on commit 5d0ea91

Please sign in to comment.