摘要: 题目: You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a... 阅读全文
posted @ 2014-04-29 14:07 mickole 阅读(334) 评论(0) 推荐(0) 编辑
摘要: 题目: Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3.... 阅读全文
posted @ 2014-04-29 12:27 mickole 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 题目: There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)). 解题思路: 这道题,很容易想到的是先排序再直接定位中间那个... 阅读全文
posted @ 2014-04-29 10:26 mickole 阅读(221) 评论(0) 推荐(0) 编辑