阅读背景:

如何使用void方法递归反转链表?

来源:互联网 

Im having trouble inverting a linked list with a void method. Im only alowed to use two pointer nodes (p,q). I´ve found several methods but not a void one. I need the root list to be modifed itself(that´s why it has to be a void method). The method has to be recursive(I know base definitions are different in void methods). Here's what i've done so far(not much). Im having trouble inverting a linked list with




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: