LintCode问题图解-24
2017-11-02 本文已影响0人
billliu_0d62
本文准备讲解1个简单的算法编程问题, 这个算法编程问题来自LintCode平台。不了解.LintCode平台的读者可以阅读笔者文章(在线编程平台推荐-LeetCode)。问题的英文版本描述如下:
Reverse Linked List
Reverse a linked list.
Example
For a linked list 1->2->3, the reversed linked list is 3->2->1.
翻转链表
翻转1个链表
样例
给出1个链表 1->2->3,翻转后的链表为 3->2->1.
1 种简单高效的算法:
标准的算法:
