码迷,mamicode.com
首页 >  
搜索关键字:find    ( 24186个结果
lintcode-medium-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. Example For example, given the follo ...
分类:其他好文   时间:2016-03-30 08:16:24    阅读次数:142
lintcode-medium-Max Points on a Line
Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. Example Given 4 points: (1,2), (3,6), (0,0), (1,3) ...
分类:其他好文   时间:2016-03-30 07:05:45    阅读次数:150
Find Missing Term in Arithmetic Progression 等差数列缺失项
查找等差数列中的缺失项. e.g.Input: arr[] = {2, 4, 8, 10, 12, 14} Output: 6 Input: arr[] = {1, 6, 11, 16, 21, 31}; Output: 26. 采用binary search. 若是arr[mid] - arr[l ...
分类:其他好文   时间:2016-03-30 07:04:17    阅读次数:121
lintcode-medium-Majority Number III
Given an array of integers and a number k, the majority number is the number that occurs more than 1/k of the size of the array. Find it. Notice There ...
分类:其他好文   时间:2016-03-30 06:55:21    阅读次数:149
poj 1703 Find them, Catch them
Find them, Catch them Time Limit:1000MS Memory Limit:10000KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 1703 Find them, Catch them Submi ...
分类:其他好文   时间:2016-03-30 01:34:15    阅读次数:222
Quicksum -SilverN
quicksum Given a string of digits, find the minimum number of additions required for the string to equal some target number. Each addition is the equi ...
分类:其他好文   时间:2016-03-30 00:11:37    阅读次数:335
find bugs-求最大公约数和最小公倍数
关于使用find bugs测试下列代码。 运行结果: find bugs结果: 说明程序无bug. ...
分类:其他好文   时间:2016-03-29 23:39:24    阅读次数:216
linux基础命令练习1
#ls-l|grep"^d"#cat/etc/ssh/sshd_config|grep-v^#[^xx]不包括xx#ls-Fl|grep/$#grep-Ev"^#|^$"/etc/ssh/sshd_config#egrep-v"^#|^$"/etc/ssh/sshd_config#find.-typed!-name"."#find.-typed!-name"."-prune#tree-Ld1#ls-l|sed-n/^d/pls-l|awk‘/^d/‘#ls-lF|sed-n‘/\/$/p‘#find-o..
分类:系统相关   时间:2016-03-29 22:25:20    阅读次数:194
leetcode:Nth to Last Node in List
1、 Find the nth to last element of a singly linked list. The minimum number of nodes in list is n. Given a List 3->2->1->5->null and n = 2, return nod ...
分类:其他好文   时间:2016-03-29 16:21:02    阅读次数:143
C++ STL, set用法。
insert() ,插入一个元素 clear() ,删除set容器中的所有的元素 empty() ,判断set容器是否为空 size() ,返回当前set容器中的元素个数 count() ,用来查找set中某个键值出现次数。 find() ,返回给定值值得定位器,如果没找到则返回end() 查找数据 ...
分类:编程语言   时间:2016-03-29 14:44:08    阅读次数:231
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!