2014年9月3日

Two Sum 系列

摘要: Two Sum 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 @ 2014-09-03 21:17 bug睡的略爽 阅读(176) 评论(0) 推荐(0) 编辑

Search in Rotated Sorted Array

摘要: Search in Rotated Sorted Array Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 阅读全文

posted @ 2014-09-03 16:32 bug睡的略爽 阅读(121) 评论(0) 推荐(0) 编辑

Interleaving String

摘要: Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. For example,Given:s1 = "aabcc",s2 = "dbbca", When s3 = "aadbbcbcac", ret 阅读全文

posted @ 2014-09-03 15:47 bug睡的略爽 阅读(152) 评论(0) 推荐(0) 编辑

Longest Valid Parentheses

摘要: Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring. For "(()", the lo 阅读全文

posted @ 2014-09-03 10:40 bug睡的略爽 阅读(223) 评论(3) 推荐(1) 编辑

导航