面试题:链表倒数第k个节点
摘要:
题目描述:输入一个链表,输出该链表中倒数第k个结点。 方法1:遍历两次链表 方法2:遍历一次链表(第一个指针提前走k-1步) 阅读全文
posted @ 2018-08-20 21:33 Aaron12 阅读(97) 评论(0) 推荐(0)
posted @ 2018-08-20 21:33 Aaron12 阅读(97) 评论(0) 推荐(0)
posted @ 2018-08-20 20:21 Aaron12 阅读(88) 评论(0) 推荐(0)
posted @ 2018-08-20 18:03 Aaron12 阅读(93) 评论(0) 推荐(0)
posted @ 2018-08-20 16:39 Aaron12 阅读(134) 评论(0) 推荐(0)
posted @ 2018-08-20 11:35 Aaron12 阅读(170) 评论(0) 推荐(0)
posted @ 2018-08-20 09:52 Aaron12 阅读(185) 评论(0) 推荐(0)
posted @ 2018-08-20 09:23 Aaron12 阅读(129) 评论(0) 推荐(0)