LeetCode #4 Median of Two Sorted Arrays (H)

摘要: [Problem]There are two sorted arraysnums1andnums2of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexi... 阅读全文
posted @ 2015-09-30 23:50 张惬意 阅读(123) 评论(0) 推荐(0) 编辑

LeetCode #3 Longest Substring Without Repeating Characters (M)

摘要: [Problem]Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating l... 阅读全文
posted @ 2015-09-30 23:05 张惬意 阅读(102) 评论(0) 推荐(0) 编辑

LeetCode #2 Add Two Numbers (M)

摘要: [Problem]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-30 22:52 张惬意 阅读(98) 评论(0) 推荐(0) 编辑

LeetCode #1 Two Sum (M)

摘要: [Problem]Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of t... 阅读全文
posted @ 2015-09-30 00:01 张惬意 阅读(92) 评论(0) 推荐(0) 编辑