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