摘要: 原题链接: 1 2 1、输入一个链表的头节点,从尾到头反过来返回每个节点的值(用数组返回)。 使用反向迭代器 1 struct ListNode{ 2 int val; 3 ListNode *next; 4 ListNode(int x):val(x),next(NULL){} 5 }; 6 7 阅读全文
posted @ 2021-11-15 22:03 朱果果 阅读(34) 评论(0) 推荐(0)