2025-01-12 双向链表 -1
This commit is contained in:
parent
ec1aea6fe8
commit
7bc1fdd338
@ -18,6 +18,8 @@ public class DoubleLinkedList {
|
|||||||
node.prev = temp;
|
node.prev = temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//todo 设计按照顺序插入双向链表的方法
|
||||||
|
|
||||||
public void modify(DoubleLinkedListNode node){
|
public void modify(DoubleLinkedListNode node){
|
||||||
DoubleLinkedListNode temp = head;
|
DoubleLinkedListNode temp = head;
|
||||||
if (head.next == null){
|
if (head.next == null){
|
||||||
|
Loading…
Reference in New Issue
Block a user