码迷,mamicode.com
首页 >  
搜索关键字:find grep    ( 34568个结果
Leetcode::Longest Common Prefix && Search for a Range
一次总结两道题,两道题目都比较基础Description:Write a function to find the longest common prefix string amongst an array of strings.分析: 这道题目最重要的知道什么叫prefix前缀, 否则一不小心就做...
分类:其他好文   时间:2014-06-09 21:08:16    阅读次数:224
内核参数vm.overcommit_memory和vm.overcommit_ratio
(1)vm.overcommit_memory执行grep -i commit /proc/meminfo看到CommitLimit和Committed_As参数。CommitLimit是一个内存分配上限,CommitLimit = 物理内存 * overcommit_ratio(默认50,即50%...
分类:其他好文   时间:2014-06-09 20:39:30    阅读次数:609
[cc150] 硬币问题
Given an infinite number of quarters (25 cents), dimes (10 cents), nickels (5 cents) and pennies (1 cent), find how many ways to represent n cents.思路:...
分类:其他好文   时间:2014-06-09 20:04:56    阅读次数:238
php性能调优
第一章针对系统调用过多的优化我这次的优化针对syscall调用过多的问题,所以使用strace跟踪apache进行分析。1.apache2ctl -X &使用-X(debug)参数启动httpd进程,这个时候只启动1个httpd进程2. ps -ef | grep httpd找到需要strace的p...
分类:Web程序   时间:2014-06-09 19:59:24    阅读次数:377
[leetcode]Combination Sum @ Python
原题地址:https://oj.leetcode.com/problems/combination-sum/题意:Given a set of candidate numbers (C) and a target number (T), find all unique combinations in...
分类:编程语言   时间:2014-06-09 17:50:09    阅读次数:333
LeetCode:Substring with Concatenation of All Words
You are given a string, S, and a list of words, L, that are all of the same length. Find all starting indices of substring(s) in S that is a concatena...
分类:其他好文   时间:2014-06-09 17:49:34    阅读次数:240
[leetcode]First Missing Positive @ Python
原题地址:https://oj.leetcode.com/problems/first-missing-positive/题意:Given an unsorted integer array, find the first missing positive integer.For example,G...
分类:编程语言   时间:2014-06-09 17:44:43    阅读次数:980
[leetcode]Combination Sum II @ Python
原题地址:https://oj.leetcode.com/problems/combination-sum-ii/题意:Given a collection of candidate numbers (C) and a target number (T), find all unique combi...
分类:编程语言   时间:2014-06-09 17:41:58    阅读次数:320
ubuntu查看Mysql是否已启动
sudo netstat -tap | grep mysql命令行输出:tcp6 0 0 [::]:mysql [::]:* LISTEN 1740/mysqldsudo netstat -tapActive Internet connections (servers and established...
分类:数据库   时间:2014-06-09 13:18:40    阅读次数:1299
leetcode - Single Number
今天开始刷leetcode上的题,争取校招前刷过一遍,从AC率最高的题目开始刷,不废话了,看题题目:Single NumberGiven an array of integers, every element appearstwiceexcept for one. Find that single ...
分类:其他好文   时间:2014-06-09 12:57:45    阅读次数:260
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!