上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页
摘要: 题目:There are N children standing in a line. Each child is assigned a rating value. You are giving candies to these children subjected to the followin... 阅读全文
posted @ 2014-07-30 08:50 爱做饭的小莹子 阅读(1817) 评论(0) 推荐(0) 编辑
摘要: 题目:Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it is able to trap after rain... 阅读全文
posted @ 2014-07-30 08:21 爱做饭的小莹子 阅读(3856) 评论(0) 推荐(0) 编辑
摘要: 题目:Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may com... 阅读全文
posted @ 2014-07-30 05:23 爱做饭的小莹子 阅读(3156) 评论(0) 推荐(0) 编辑
摘要: 题目:Say you have an array for which the ith element is the price of a given stock on day i.Design an algorithm to find the maximum profit. You may com... 阅读全文
posted @ 2014-07-30 04:58 爱做饭的小莹子 阅读(2823) 评论(0) 推荐(0) 编辑
摘要: 题目:Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transact... 阅读全文
posted @ 2014-07-30 04:24 爱做饭的小莹子 阅读(1794) 评论(0) 推荐(0) 编辑
摘要: 题目: Find the contiguous subarray within an array (containing at least one number) which has the largest sum.For example, given the array [−2,1,−3,4,−1... 阅读全文
posted @ 2014-07-30 04:06 爱做饭的小莹子 阅读(6333) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all suc... 阅读全文
posted @ 2014-07-30 02:49 爱做饭的小莹子 阅读(3387) 评论(0) 推荐(0) 编辑
摘要: 题目:Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.F... 阅读全文
posted @ 2014-07-29 09:27 爱做饭的小莹子 阅读(3057) 评论(0) 推荐(0) 编辑
摘要: 题目:Given an array of strings, return all groups of strings that are anagrams.Note: All inputs will be in lower-case.题解:这道题看所给的字符串数组里面有多少个是同一个变形词变的。这道... 阅读全文
posted @ 2014-07-29 08:55 爱做饭的小莹子 阅读(3243) 评论(0) 推荐(0) 编辑
摘要: 题目:Clone an undirected graph. Each node in the graph contains a label and a list of its neighbors.OJ's undirected graph serialization:Nodes are label... 阅读全文
posted @ 2014-07-29 05:29 爱做饭的小莹子 阅读(11042) 评论(3) 推荐(1) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页