Consideration
- make three pointers , pre,current,next;
- initial pre as null
- use tmp to save current’s next node info
- change current’s next to link pre node(first is null)
- move pre pointer to next node
- move current pointer to next node
soultion
1 |
|
Consideration
soultion
1 |
|
近期评论