码迷,mamicode.com
首页 >  
搜索关键字:search in rotated so    ( 23420个结果
Euler_problem_18 for python
如下所示 给出2个解法 def euler_problem_18_1():     """     this problem spend my half-day but noting to finished ,so bad     """     rows = '''     3     7 4     2 4 6     100 5 9 3     '''     ...
分类:编程语言   时间:2014-06-07 01:28:18    阅读次数:261
LeetCode: Sort Colors [075]
【题目】 Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the order red, white and blue. Here, we will use the integers 0, 1, and 2 to represent the color red, white, and...
分类:其他好文   时间:2014-06-07 01:17:49    阅读次数:269
hdu1257(dp基础)
最近早上要上课的时候都只能做一些 dp基础了。不过今天感觉还是十分失败的,我决定明天我要在脖子上搭一条湿毛巾,so hot! 题目很简单,读起来就很经典,可是我想了蛮久的..四十分钟最后才AC,真心弱。 大概意思是:中文题哦!!还要解释吗? 我的dp做法很暴力啊,我个人认为!!!!46MS,看来数据还是很正常的。 /*************************************...
分类:其他好文   时间:2014-06-05 12:02:04    阅读次数:179
“聊天剽窃手”--ptrace进程注入型病毒
近日,百度安全实验室发现了一款“聊天剽窃手”病毒,该病毒能够通过ptrace方式注入恶意代码至QQ、微信程序进程,恶意代码能够实时监控手机QQ、微信的聊天内容及联系人信息。该病毒是目前发现的首款通过ptrace进程注入方式进行恶意窃取私密资料的病毒。   简介 该病毒主要是通过ptrace注入QQ和微信进程进行信息窃取的,主程序调用assets中的inject_appso,libcall.so以及...
分类:其他好文   时间:2014-06-05 10:10:55    阅读次数:325
LeetCode: Search a 2D Matrix [074]
【题目】 Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties: Integers in each row are sorted from left to right. The first integer of each row is greater than the last integer of the previous ...
分类:其他好文   时间:2014-06-05 08:28:43    阅读次数:321
lxc-config: error while loading shared libraries: liblxc.so.1
很多的开源软件在安装过程中会出现找不到动态库的问题我在ubuntu12.04安装lxc时,没有出现这问题,但在centos6.5的时候出现了这问题fix:#find / -name  liblxc.so.1#echo "/usr/local/lib/" >> /etc/ld.so.conf#ldconfig...
分类:其他好文   时间:2014-06-05 06:23:02    阅读次数:243
Coreseek:第二步建索引及测试
1,建索引很简单,一行代码 g:/service/coreseek/bin/indexer -c g:/service/coreseek/etc/csft_mysql.conf   person 前面是你bin目录下的indexer程序 后面-c指后面会跟配置文件 然后是配置文件地址 最好都用绝对地址 在后面是索引 也可以用--all 即对配置文件的所有部分都做索引 然后写成一个批处理文...
分类:其他好文   时间:2014-06-04 23:22:13    阅读次数:256
php 字符串函数
1查找字符位置函数:strpos($str,search,[int]):查找search在$str中的第一次位置从int开始;stripos($str,search,[int]):函数返回字符串在另一个字符串中第一次出现的位置。该函数对大小写不敏感strrpos($str,search,[int])...
分类:Web程序   时间:2014-05-31 14:07:06    阅读次数:329
nodejs写的一个网页爬虫例子(坏链率)
因为工作需要,用nodejs写了个简单的爬虫例子,之前也没用过nodejs,连搭环境加写大概用了5天左右,so。。。要多简陋有多简陋,放这里给以后的自己看~~ 整体需求是:给一个有效的URL地址,返回该网页上所有无效链接的百分比(坏链率) 第一个文件:计算环链率 urlSpider.js ...
分类:Web程序   时间:2014-05-31 11:28:26    阅读次数:564
UVALIVE 6450 Social Advertising
You have decided to start up a new social networking company. Other existing popular social networksalready have billions of users, so the only way to...
分类:其他好文   时间:2014-05-31 04:34:45    阅读次数:275
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!