coach的OUTLET网站上的包价格便宜很多,能买吗?# Fashion - 美丽时尚
A*g
1 楼
Leetcode上这题 reverse linked list II
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n = 4,
return 1->4->3->2->5->NULL.
Google了一个解法,https://gist.github.com/eclipse9614/4757816
通过测试了
根据这个算法,模拟一下
如图,好像不是很对,肯定是我理解有问题
搞了一晚上了,太挫了!
Reverse a linked list from position m to n. Do it in-place and in one-pass.
For example:
Given 1->2->3->4->5->NULL, m = 2 and n = 4,
return 1->4->3->2->5->NULL.
Google了一个解法,https://gist.github.com/eclipse9614/4757816
通过测试了
根据这个算法,模拟一下
如图,好像不是很对,肯定是我理解有问题
搞了一晚上了,太挫了!