LintCode 466链表节点计数

思路 遍历访问数个数 /** * Definition of singly-linked-list: * class ListNode { * public: * int val; * ListNode *next; * ListNode(int val) { * this->val = val; * this->next = NULL; * } * } */ class Solution { p
相关文章
相关标签/搜索