码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
217. Contains Duplicate(C++)
217. Contains Duplicate Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears a ...
分类:编程语言   时间:2016-05-14 18:50:20    阅读次数:198
64. Minimum Path Sum
Given a m x n grid filled with non-negative numbers, find a path from top left to bottom right which minimizes the sum of all numbers along its path. ...
分类:其他好文   时间:2016-05-14 18:46:37    阅读次数:110
bzoj4580: [Usaco2016 Open]248
bzoj4580: [Usaco2016 Open]248 Description Bessie likes downloading games to play on her cell phone, even though she does find the small touch screen r ...
分类:其他好文   时间:2016-05-14 18:45:13    阅读次数:154
169. Majority Element(C++)
169. Majority Element Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. Y ...
分类:编程语言   时间:2016-05-14 18:35:13    阅读次数:364
leetcode edit distance
首先给出题目: Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.) Y ...
分类:其他好文   时间:2016-05-14 15:36:24    阅读次数:156
Combination Sum系列问题
主要使用方法是backtracking。 Combination Sum Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candida ...
分类:其他好文   时间:2016-05-14 15:32:53    阅读次数:174
bzoj4510: [Usaco2016 Jan]Radio Contact
bzoj4510: [Usaco2016 Jan]Radio Contact Description Farmer John has lost his favorite cow bell, and Bessie the cow has agreed to help him find it! They ...
分类:其他好文   时间:2016-05-14 12:48:33    阅读次数:288
LintCode Find Minimum In Rotated Sorted Array
1. 画图, 直观。 2. 讨论数组为空或者个数为零。 3. 讨论首尾, 若为翻转过的则进行查找直到最后两个数进行比较, 取小者。 ...
分类:其他好文   时间:2016-05-14 07:53:24    阅读次数:162
[LeetCode] 30. Substring with Concatenation of All Words 解题思路 - Java
You are given a string, s, and a list of words, words, that are all of the same length. Find all starting indices of substring(s) in s that is a conca ...
分类:编程语言   时间:2016-05-14 06:35:16    阅读次数:249
leetcode169——Majority Element (C++)
Given an array of size n, find the majority element. The majority element is the element that appears more than ? n/2 ? times. You may assume that the ...
分类:编程语言   时间:2016-05-13 20:45:41    阅读次数:234
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!