Given a link list,remove the n th node from the end of list and return its head.
题目:
Given a link list,remove the n th node from the end of list and return its head.
Note:
Given n will always be valid.
Try to do this in one pass.
给一个单链表,让你删除它的倒数第n个结点。
这个题目很简单,可以先遍历一遍求出...
原创
2018-08-07 01:52:30 ·
690 阅读 ·
0 评论