码迷,mamicode.com
首页 >  
搜索关键字:monkey runner    ( 1881个结果
Leetcode: Linked List Cycle
Given a linked list, determine if it has a cycle in it.Follow up:Can you solve it without using extra space?Analysis: typical Runner Technique. 一次过 1 ...
分类:其他好文   时间:2014-06-28 13:44:51    阅读次数:164
Python Monkey patch猴子补丁
monkey patch (猴子补丁) 用来在运行时动态修改已有的代码,而不需要修改原始代码。简单的monkey patch 实现:[python]#coding=utf-8def originalFunc(): print 'this is original function!'def modif...
分类:编程语言   时间:2014-06-24 22:50:22    阅读次数:463
error while loading shared libraries: libevent-2.0.so.5解决办法
CentOS下如何安装libevent1.下载安装包新版本是libevent-2.0.10-stable。(如果你的系统已经安装了libevent,可以不用安装)官网:http://www.monkey.org/~provos/libevent/下载:http://www.monkey.org/~p...
分类:其他好文   时间:2014-06-18 15:46:17    阅读次数:273
UVA 11205 The broken pedometer(子集枚举)
Description  The Broken Pedometer  The Problem A marathon runner uses a pedometer with which he is having problems. In the pedometer the symbols are represented by seven s...
分类:其他好文   时间:2014-06-18 12:31:09    阅读次数:203
Template template parameter(模板参数) example
/********************************************************************************* Copyright (C), 1988-1999, drvivermonkey. Co., Ltd. File name: Author: Driver Monkey Version: Mail:bookwor...
分类:其他好文   时间:2014-06-15 14:52:23    阅读次数:267
HDU - 4815 Little Tiger vs. Deep Monkey (长春赛区C题)
题意:有A,B两个人,n道题目,每题有对应的分数,B答对题目的概率是0.5,求A不输给B的概率不小于P要拿的最低分数 思路:DP,dp[i][j]来表示B答了前i题后分数为j的概率,,然后通过B的概率求A的最低分数#include #include #include #include using namespace std; const int MAXN = 40010; int a[...
分类:其他好文   时间:2014-06-02 02:25:20    阅读次数:243
【HDOJ】2851 Lode Runner
开始没理解题意。原来destinations是指路的序号。而不是点。DP。 1 #include 2 #include 3 4 int dp[2005]; 5 6 typedef struct { 7 int s, e, w; 8 } road_st; 9 10 road_st ro...
分类:其他好文   时间:2014-05-29 09:18:50    阅读次数:325
libevent简单介绍
http://blog.csdn.net/mafuli007/article/details/74760141简介主页:http://www.monkey.org/~provos/libevent/。libevent是一个事件触发的网络库,适用于windows、linux、bsd等多种平台,内部使用...
分类:其他好文   时间:2014-05-26 08:38:22    阅读次数:261
linux-CentOS6.4安装Memcached+memcached扩展+安装memcache扩展+Memcache同步SESSION的几种方法
一、编译环境的准备  yum install gcc  yum install gcc-c++ libstdc++-devel  yum install zlib-devel二、源码包准备wget http://monkey.org/~provos/libevent-1.4.14b-stable.tar.gzwget http://memcached.googlecode.com/files/me...
分类:系统相关   时间:2014-05-26 03:38:01    阅读次数:375
libevent install
1.先用:ls -al /usr/lib | grep libevent查看是否已安装,如果已安装且版本低于1.3,则先通过:rpm -e libevent —nodeps进行卸载。安装:# wget http://www.monkey.org/~provos/libevent-1.4.13-sta...
分类:其他好文   时间:2014-05-25 23:34:50    阅读次数:271
1881条   上一页 1 ... 185 186 187 188 189 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!