摘要: 原题链接在这里:https://leetcode.com/problems/linked-list-cycle/ 题目: Given a linked list, determine if it has a cycle in it. Follow up:Can you solve it withou 阅读全文
posted @ 2015-08-29 22:12 Dylan_Java_NYC 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/swap-nodes-in-pairs/ 题目: Given a linked list, swap every two adjacent nodes and return its head. You must solve 阅读全文
posted @ 2015-08-29 21:51 Dylan_Java_NYC 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 原题链接:https://leetcode.com/problems/add-two-numbers/ 题目: You are given two linked lists representing two non-negative numbers. The digits are stored in 阅读全文
posted @ 2015-08-29 05:39 Dylan_Java_NYC 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/intersection-of-two-linked-lists/ 题目: Write a program to find the node at which the intersection of two singly l 阅读全文
posted @ 2015-08-29 04:07 Dylan_Java_NYC 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/palindrome-linked-list/ 题目: Given a singly linked list, determine if it is a palindrome. Follow up:Could you do 阅读全文
posted @ 2015-08-29 03:19 Dylan_Java_NYC 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 原题链接在这里:https://leetcode.com/problems/remove-nth-node-from-end-of-list/ 题目: Given a linked list, remove the nth node from the end of list and return i 阅读全文
posted @ 2015-08-29 01:00 Dylan_Java_NYC 阅读(205) 评论(0) 推荐(0) 编辑