H*M 发帖数: 1268 | | l**a 发帖数: 43 | 2 出题吧
【在 H*M 的大作中提到】 : would be fun!!
| w********p 发帖数: 948 | | H*M 发帖数: 1268 | 4 ok.guys..let me check zhiyebei
【在 w********p 的大作中提到】 : 加入 : 过节了,别太难。。。
| l**a 发帖数: 43 | 5 find the start of loop first, then delete from head, at loop start, move to
next node, and set the loop start's next node to null, delete the rest nodes
one by one
finish
funny
【在 H*M 的大作中提到】 : ok.guys..let me check zhiyebei
| H*M 发帖数: 1268 | 6 yeah. I think we can un-loop it first and delete normally..
to
nodes
【在 l**a 的大作中提到】 : find the start of loop first, then delete from head, at loop start, move to : next node, and set the loop start's next node to null, delete the rest nodes : one by one : : finish : funny
| g****u 发帖数: 136 | 7 有个性
【在 H*M 的大作中提到】 : would be fun!!
| a****l 发帖数: 245 | 8 it seems to me that we don't need to find the start of loop. Deleting each
node from start normally and setting the deleted node to null should work ba
...
to
nodes
【在 l**a 的大作中提到】 : find the start of loop first, then delete from head, at loop start, move to : next node, and set the loop start's next node to null, delete the rest nodes : one by one : : finish : funny
|
|