摘要:
今天刷的小题一道,微软14年校园招聘笔试唯一一道编程题。Given a singly linked list L: (L0 , L1 , L2...Ln-1 , Ln). Write a program to reorder it so that it becomes(L0 , Ln , L1 , Ln-1 , L2 , Ln-2...).1 struct Node 2 { 3 int val_; 4 Node* next; 5 };Notes:1、Space Complexity should be O(1)2、Only the ".next" field of a .. 阅读全文
posted @ 2013-10-10 00:04
1加1equal雨山
阅读(454)
评论(1)
推荐(0)

浙公网安备 33010602011771号