mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 00:43:04 +08:00
Update 0707.设计链表.md
This commit is contained in:
@ -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]
|
||||
|
Reference in New Issue
Block a user