Linked List
QihaoD
留个言吧,会很开心的,哈哈
展开
-
[leetCode] Intersection of Two Linked Lists
Write a program to find the node at which the intersection of two singly linked lists begins. For example, the following two linked lists: A: a1 → a2 ↘原创 2014-12-09 01:48:40 · 303 阅读 · 0 评论 -
[leetCode] Palindrome Linked List
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? public class Solution { ListNode h; public boolean isPalindrome(ListNo原创 2015-08-19 00:56:40 · 324 阅读 · 0 评论