摘要: Remove all elements from a linked list of integers that have value val. Example Given: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6 Return: 1 --> 2 阅读全文
posted @ 2018-02-20 17:17 于淼 阅读(65) 评论(0) 推荐(0) 编辑
摘要: Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? Given a linked list, determine if it ha 阅读全文
posted @ 2018-02-20 09:47 于淼 阅读(94) 评论(0) 推荐(0) 编辑