码迷,mamicode.com
首页 >  
搜索关键字:constant pool    ( 4909个结果
代理写标准连接池
1 //实现DataSource接口 2 public class MyConn implements DataSource { 3 //声明池管理对象 4 private LinkedList pool =new LinkedList(); 5 //在构造函数中初始化,创...
分类:其他好文   时间:2014-11-19 15:22:50    阅读次数:168
leetcode - Min Stack
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time. push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get ...
分类:其他好文   时间:2014-11-19 14:13:08    阅读次数:149
Go by Example: Constants
Go by Example: Constants...
分类:其他好文   时间:2014-11-19 11:31:47    阅读次数:158
LeetCode Solutions : Sort List
Sort a linked list inO(nlogn) time using constant space complexity.O(nlogn),我们可以第一时间想到常用的二路归并排序,快速排序和堆排序,其中快排和堆排只适用于线性表,即数组,故这道编程题毫无疑问用二路归并排序;* 1. 利用一...
分类:其他好文   时间:2014-11-19 07:24:33    阅读次数:225
Go by Example: Constants
Go by Example: Constants...
分类:其他好文   时间:2014-11-19 01:31:16    阅读次数:142
LeetCode: Min Stack 解题报告
Min Stack My SubmissionsQuestionSolutionDesign a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Pu...
分类:其他好文   时间:2014-11-19 00:15:08    阅读次数:271
OpenCV Tutorials —— Adding borders to your images
扩展图像边界: BORDER_CONSTANT: Pad the image with a constant value (i.e. black or BORDER_REPLICATE: The row or column at the very edge of the original is re...
分类:其他好文   时间:2014-11-18 23:44:20    阅读次数:338
【leetcode】Min Stack -- python版
题目描述:Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Re...
分类:编程语言   时间:2014-11-18 23:14:32    阅读次数:198
内存池的实现
memory pool移植自nginx, windows平台可用本人共研究过两个开源内存池的实现,一是nginx内存管理,二是python中内存的管理。由于python中涉及到对象的管理以及缓存,比较复杂,不适合移植到自己的软件中使用,nginx正好相反,短小精悍,适合添加一些特定的需求进行二次开发...
分类:其他好文   时间:2014-11-17 22:36:05    阅读次数:302
python将不同的文件名上传到不同的服务器
#!/usr/bin/python #-*-coding:utf-8-*- importparamiko importdatetime importos,tab,sys frommultiprocessingimportProcess,Pool host_list=( (‘192.168.1.127‘,‘root‘,‘123456‘), (‘192.168.1.143‘,‘root‘,‘123456‘), (‘192.168.1.141‘,‘root‘,‘123456‘), ) defput(host_..
分类:编程语言   时间:2014-11-17 14:11:15    阅读次数:225
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!