- 博客(1)
- 收藏
- 关注
原创 交换链表的奇偶位(比如1和2,3和4,5和6。。。交换)
题目:Given a linked list, swap every two adjacent nodes and return its head.For example,Given1->2->3->4, you should return the list as2->1->4->3.Your algorithm should use only constant space. You may
2016-02-26 15:51:15 1508
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人