Fork me on GitHub
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 37 下一页
摘要: Given an array of integers and an integer k, find out whether there are two distinct indices i and j in the array such that nums[i] = nums[j] and the  阅读全文
posted @ 2017-06-04 14:29 hellowOOOrld 阅读(157) 评论(0) 推荐(0)
摘要: You need to construct a string consists of parenthesis and integers from a binary tree with the preorder traversing way. The null node needs to be rep 阅读全文
posted @ 2017-06-04 11:52 hellowOOOrld 阅读(289) 评论(0) 推荐(0)
摘要: Suppose you have a long flowerbed in which some of the plots are planted and some are not. However, flowers cannot be planted in adjacent plots - they 阅读全文
posted @ 2017-06-04 11:48 hellowOOOrld 阅读(366) 评论(0) 推荐(0)
摘要: Given a collection of integers that might contain duplicates, nums, return all possible subsets.Note: The solution set must not contain duplicate subs 阅读全文
posted @ 2017-06-03 23:35 hellowOOOrld 阅读(165) 评论(0) 推荐(0)
摘要: Given a set of distinct integers, nums, return all possible subsets.Note: The solution set must not contain duplicate subsets.For example,If nums = [1 阅读全文
posted @ 2017-06-03 21:36 hellowOOOrld 阅读(346) 评论(0) 推荐(0)
摘要: Given a string s and a non-empty string p, find all the start indices of p's anagrams in s.Strings consists of lowercase English letters only and the 阅读全文
posted @ 2017-06-03 12:30 hellowOOOrld 阅读(147) 评论(0) 推荐(0)
摘要: Given two strings s and t, write a function to determine if t is an anagram of s.For example,s = "anagram", t = "nagaram", return true.s = "rat", t = 阅读全文
posted @ 2017-06-03 11:01 hellowOOOrld 阅读(139) 评论(0) 推荐(0)
摘要: Given an array of strings, group anagrams together.For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return:[ ["ate", "eat","tea"], ["na 阅读全文
posted @ 2017-06-03 10:35 hellowOOOrld 阅读(141) 评论(0) 推荐(0)
摘要: Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, 阅读全文
posted @ 2017-06-02 10:16 hellowOOOrld 阅读(154) 评论(0) 推荐(0)
摘要: Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted f 阅读全文
posted @ 2017-06-01 22:35 hellowOOOrld 阅读(103) 评论(0) 推荐(0)
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 37 下一页