明天去做info pass,请问到时要问些什么呢# Immigration - 落地生根
j*n
1 楼
要求 reverse a piece of linked list. 扫1遍,in place
比如
a->b->c->d->e->f
reverse(2,4) // reverse 2nd -- 4th
result: a->d->c->b->e->f
我写了1个 挺难看的。关键是我讨论了这个piece是不是从head开始 还是
不从head 开始, 程序就很难看。
比如
a->b->c->d->e->f
reverse(2,4) // reverse 2nd -- 4th
result: a->d->c->b->e->f
我写了1个 挺难看的。关键是我讨论了这个piece是不是从head开始 还是
不从head 开始, 程序就很难看。