码迷,mamicode.com
首页 >  
搜索关键字:find grep    ( 34568个结果
47. 数组中出现次数超过一半的数字[Number appears more than half times]
Find number which appears more than half times of array length.
分类:移动开发   时间:2014-05-27 00:16:48    阅读次数:339
LeetCode: Single Number Ⅱ
Given an array of integers, every element appears three times except for one. Find that single one. Note: Your algorithm should have a linear runtime ...
分类:其他好文   时间:2014-05-27 00:10:26    阅读次数:319
linux shell 脚本获取和替换文件中特定内容
1.从一串字符串中获取特定的信息要求1:获取本机IP:menu.lst为系统镜象的IP配置文件,需要从中获取到本机IP信息(从文件获取信息)1 timeout 12 default 03 4 title live5 find --set-root /casper/vmlinuz6 kernel /c...
分类:系统相关   时间:2014-05-26 23:44:19    阅读次数:585
【题解】【数组】【Leetcode】Median of Two Sorted Arrays
####Median of Two Sorted Arrays >There are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overa...
分类:其他好文   时间:2014-05-26 23:13:41    阅读次数:265
LeetCode Longest Common Prefix
Write a function to find the longest common prefix string amongst an array of strings. 要减少比较次数。在实现过程中我的想法是,2个2个比较,那么只要遍历一次数组就好。而且,在比较过程中,以较短的那个长度作为最大比...
分类:其他好文   时间:2014-05-26 21:29:43    阅读次数:203
Linux学习资料整理
ShellLinux Shell脚本教程:30分钟玩转Shell脚本编程Bash Shell字符串操作小结vivim使用vi、vim删除以及其他命令Vim静态模板文件打造自己的vim界面命令linux中grep命令的用法linux之sort用法gawkgawk手册Common threads: Aw...
分类:系统相关   时间:2014-05-26 20:38:26    阅读次数:332
LeetCode:3Sum
Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of ...
分类:其他好文   时间:2014-05-26 14:02:27    阅读次数:263
【LeetCode】Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ...
分类:其他好文   时间:2014-05-26 13:59:59    阅读次数:237
【LeetCode】4Sum
Given an arraySofnintegers, are there elementsa,b,c, anddinSsuch thata+b+c+d= target? Find all unique quadruplets in the array which gives the sum of ...
分类:其他好文   时间:2014-05-26 13:56:05    阅读次数:269
001. 3和5的倍数
Problem 1: Multiples of 3 and 5 If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23. Find the sum of all the multip...
分类:其他好文   时间:2014-05-23 01:43:01    阅读次数:253
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!