摘要:
1. Intersection of two arrays 一个hash表存一数组,一hash表存结果 1 public int[] intersection(int[] nums1, int[] nums2) { 2 // Write your code here 3 HashSet<Intege 阅读全文
posted @ 2017-03-29 19:41
wheleetcode
阅读(122)
评论(0)
推荐(0)
摘要:
1,链表找中间节点 ListNode fast = head; ListNode slow = head; while (fast != null && fast.next != null) { slow = slow.next; fast = fast.next.next; } if (fast 阅读全文
posted @ 2017-03-29 14:36
wheleetcode
阅读(49)
评论(0)
推荐(0)
摘要:
1. 234 Palindrome Lineked List 找中间 反转 比较 1 public boolean isPalindrome(ListNode head) { 2 if (head == null) 3 { 4 return true; 5 } 6 ListNode fast = h 阅读全文
posted @ 2017-03-29 14:30
wheleetcode
阅读(92)
评论(0)
推荐(0)
浙公网安备 33010602011771号