摘要: Question:You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain ... 阅读全文
posted @ 2015-09-09 21:21 江湖小妞 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Question:Given a linked list, remove thenthnode from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. ... 阅读全文
posted @ 2015-09-09 19:26 江湖小妞 阅读(221) 评论(0) 推荐(0) 编辑
摘要: Question:Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?Analysis:给出一个链表,能否在O(n)的时间和... 阅读全文
posted @ 2015-09-09 15:13 江湖小妞 阅读(289) 评论(0) 推荐(0) 编辑
摘要: 相似题目:Palindrome NumberValid PalinDromeReverseLinked ListPalindrome Linked ListQuestion:Determine whether an integer is a palindrome. Do this without e... 阅读全文
posted @ 2015-09-09 14:12 江湖小妞 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 呜呜呜~要感动cry了,提交了AC解答后,beats 100% of java submissions!!第一次感受到coding和algorithm带给人的愉悦感,加油加油啊~Quesion:Given a sorted integer array without duplicates, retu... 阅读全文
posted @ 2015-09-09 10:14 江湖小妞 阅读(193) 评论(0) 推荐(0) 编辑