Problem1100--数据结构概论上机考试四-1100

1100: 数据结构概论上机考试四-1100

Time Limit: 1 Sec  Memory Limit: 128 MB
Submit: 254  Solved: 1
[Submit] [Status] [Web Board] [Creator:]

Description

给定一个单链表 L1L2Ln1Ln,请编写程序将链表重新排列为 L1LnLn-1 L3L2

Sample Input Copy

1 2 3 4 5 6

Sample Output Copy

1 6 5 4 3 2

Source/Category