链表 206 Reverse Linked List, 92,86, 328, 2, 445

表不支持随机查找,通常是使用next指针进行操作。 206. 反转链表             /** * Definition for singly-linked list. * struct ListNode { * int val; * ListNode *next; * ListNode(int x) : val(x), next(NULL) {} *
相关文章
相关标签/搜索