Skip to content

Commit 1dda691

Browse files
author
hero
committed
添加leet_code
1 parent 4ff94a7 commit 1dda691

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

linked_list/single_list.go

-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package linked_list
22

33
import (
4-
"fmt"
54
"sync"
65
)
76

@@ -97,7 +96,6 @@ func (l *List) Remove(i uint32) {
9796
for j := uint32(1); j < i; j++ {
9897
info = info.next
9998
}
100-
fmt.Println(info.data)
10199
node := info.next //要删除的节点
102100
info.next = node.next
103101
if i == l.size-1 { //最后一个节点

0 commit comments

Comments
 (0)