积少成多

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页

2016年6月23日

摘要: Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be 阅读全文
posted @ 2016-06-23 11:10 x7b5g 阅读(177) 评论(0) 推荐(0) 编辑

摘要: Given a sorted integer array without duplicates, return the summary of its ranges. For example, given [0,1,2,4,5,7], return ["0->2","4->5","7"]. Credi 阅读全文
posted @ 2016-06-23 10:27 x7b5g 阅读(136) 评论(0) 推荐(0) 编辑

摘要: c++11中提供了to_string函数,定义在string中, 重载了一大片, 另外,标准库中string有一批函数,特别难用. 阅读全文
posted @ 2016-06-23 10:23 x7b5g 阅读(384) 评论(0) 推荐(0) 编辑

2016年6月22日

摘要: Given an array of n integers where n > 1, nums, return an array output such that output[i] is equal to the product of all the elements ofnums except n 阅读全文
posted @ 2016-06-22 22:11 x7b5g 阅读(157) 评论(0) 推荐(0) 编辑

摘要: Given a non-empty array of integers, return the k most frequent elements. For example,Given [1,1,1,2,2,3] and k = 2, return [1,2]. Note: 347. Top K Fr 阅读全文
posted @ 2016-06-22 22:03 x7b5g 阅读(173) 评论(0) 推荐(0) 编辑

摘要: Given an absolute path for a file (Unix-style), simplify it. For example,path = "/home/", => "/home"path = "/a/./b/../../c/", => "/c" click to show co 阅读全文
posted @ 2016-06-22 20:25 x7b5g 阅读(172) 评论(0) 推荐(0) 编辑

摘要: Given an array of strings, group anagrams together. For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return: Note: All inputs will be i 阅读全文
posted @ 2016-06-22 20:06 x7b5g 阅读(152) 评论(0) 推荐(0) 编辑

摘要: Given an input string, reverse the string word by word. For example,Given s = "the sky is blue",return "blue is sky the". Update (2015-02-12):For C pr 阅读全文
posted @ 2016-06-22 19:27 x7b5g 阅读(149) 评论(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 @ 2016-06-22 18:20 x7b5g 阅读(149) 评论(0) 推荐(0) 编辑

摘要: Implement a basic calculator to evaluate a simple expression string. The expression string contains only non-negative integers, +, -, *, / operators a 阅读全文
posted @ 2016-06-22 18:18 x7b5g 阅读(144) 评论(0) 推荐(0) 编辑

上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页