Update 0707.设计链表.md

This commit is contained in:
Tickylime 2021-12-19 23:00:56 +08:00 committed by GitHub
parent 40a2906abf
commit b2f6e0c272
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -706,6 +706,9 @@ func (this *MyLinkedList) AddAtIndex(index int, val int) {
head = head.Next
index--
}
if index > 0 {
return
}
node := &Node{
Val: val,
//node.Next = MyLinkedList[index]