首页 > 其他 > 详细

Leetcode 143. Reorder List

时间:2017-10-26 20:42:36      阅读:242      评论:0      收藏:0      [点我收藏+]

Given a singly linked list LL0→L1→…→Ln-1→Ln,
reorder it to: L0→LnL1→Ln-1→L2→Ln-2→…

You must do this in-place without altering the nodes‘ values.

For example,
Given {1,2,3,4}, reorder it to {1,4,2,3}.

 

Leetcode 143. Reorder List

原文:http://www.cnblogs.com/simplepaul/p/7738916.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!