上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 21 下一页
摘要: 1.Valid Parentheses 题目链接 题目要求: Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid. T... 阅读全文
posted @ 2015-06-12 23:14 峰子_仰望阳光 阅读(614) 评论(0) 推荐(0) 编辑
摘要: 题目链接 题目要求: Givens1,s2,s3, find whethers3is formed by the interleaving ofs1ands2. For example, Given: s1="aabcc", s2="dbbca", Whens3="aadbbcb... 阅读全文
posted @ 2015-06-12 16:13 峰子_仰望阳光 阅读(326) 评论(0) 推荐(0) 编辑
摘要: 题目链接 题目要求: Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the ar... 阅读全文
posted @ 2015-06-12 10:48 峰子_仰望阳光 阅读(323) 评论(0) 推荐(0) 编辑
摘要: 题目链接 题目要求: A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26 Given an enco... 阅读全文
posted @ 2015-06-11 23:03 峰子_仰望阳光 阅读(319) 评论(0) 推荐(0) 编辑
摘要: 题目链接 题目要求: Find the contiguous subarray within an array (containing at least one number) which has the largest sum. For example, given the array[... 阅读全文
posted @ 2015-06-11 20:33 峰子_仰望阳光 阅读(636) 评论(0) 推荐(0) 编辑
摘要: Best Time to Buy and Sell Stock I 题目链接 题目要求: Say you have an array for which theithelement is the price of a given stock on dayi. If you were only... 阅读全文
posted @ 2015-06-11 17:00 峰子_仰望阳光 阅读(624) 评论(0) 推荐(0) 编辑
摘要: 1. Word Break 题目链接 题目要求: Given a stringsand a dictionary of wordsdict, determine ifscan be segmented into a space-separated sequence of one or mor... 阅读全文
posted @ 2015-06-10 16:08 峰子_仰望阳光 阅读(707) 评论(0) 推荐(0) 编辑
摘要: 1.Maximal Square 题目链接 题目要求: Given a 2D binary matrix filled with 0's and 1's, find the largest square containing all 1's and return its area. F... 阅读全文
posted @ 2015-06-09 19:39 峰子_仰望阳光 阅读(1226) 评论(0) 推荐(0) 编辑
摘要: 题目链接 题目要求 You are climbing a stair case. It takesnsteps to reach to the top. Each time you can either climb 1 or 2 steps. In how many distinct wa... 阅读全文
posted @ 2015-06-09 17:07 峰子_仰望阳光 阅读(395) 评论(0) 推荐(0) 编辑
摘要: House Robber题目链接 House Robber II题目链接 1.House Robber 题目要求: You are a professional robber planning to rob houses along a street. Each house has a ... 阅读全文
posted @ 2015-06-09 15:02 峰子_仰望阳光 阅读(434) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 21 下一页