mirror of
https://github.com/krahets/hello-algo.git
synced 2026-04-13 16:19:46 +08:00
Polish the chapter of array and linkedlist
This commit is contained in:
@@ -12,8 +12,8 @@ use std::cell::RefCell;
|
||||
/* 双向链表节点 */
|
||||
pub struct ListNode<T> {
|
||||
pub val: T, // 节点值
|
||||
pub next: Option<Rc<RefCell<ListNode<T>>>>, // 后继节点引用(指针)
|
||||
pub prev: Option<Rc<RefCell<ListNode<T>>>>, // 前驱节点引用(指针)
|
||||
pub next: Option<Rc<RefCell<ListNode<T>>>>, // 后继节点指针
|
||||
pub prev: Option<Rc<RefCell<ListNode<T>>>>, // 前驱节点指针
|
||||
}
|
||||
|
||||
impl<T> ListNode<T> {
|
||||
|
||||
Reference in New Issue
Block a user