数据结构---链表(List)
描述
链表以 节点 为单位,每个元素都是一个独立对象,在内存空间的存储是 非连续的。
struct ListNode {
int val; // 节点值
ListNode *next; // 后继节点引用
ListNode(int x) : val(x), next(NULL) {}
};
[i18n] feedback_title
[i18n] feedback_question
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.