码迷,mamicode.com
首页 >  
搜索关键字:direct path write temp    ( 55479个结果)
nyoj 130 相同的雪花 【哈希】
相同的雪花 时间限制:1000 ms  |  内存限制:65535 KB 难度:4 描述You may have heard that no two snowflakes are alike. Your task is to write a program to determine whether this is really true. Your program w...
分类:其他好文   时间:2014-10-12 20:01:38    阅读次数:277
Mina、Netty、Twisted一起学(九):异步IO和回调函数
用过JavaScript或者jQuery的同学都知道,JavaScript特别是jQuery中存在大量的回调函数,例如Ajax、jQuery的动画等。 在异步网络编程中,由于IO操作是异步的,也就是一个IO操作不会阻塞去等待操作结果,程序就会继续向下执行。 在MINA、Netty、Twisted中,很多网络IO操作都是异步的,比如向网络的另一端write写数据、客户端连接服务器的connect操作等。 例如Netty的write方法(以及writeAndFlush方法),执行完write语句后并不表示数据已...
分类:Web程序   时间:2014-10-12 19:06:08    阅读次数:308
运算符
华氏℉(Fahrenheit)=℃×9/5+32.摄氏℃ 数学运算符1. + - * / int i = 0; i = 0 - 1; i = 1 * 4; i = 9 / 3; Console.Write(i); Console.ReadLine();2.% //显示的是余数! int a ...
分类:其他好文   时间:2014-10-12 18:07:08    阅读次数:227
Maximum Depth of Binary Tree
Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ...
分类:其他好文   时间:2014-10-12 17:54:08    阅读次数:177
插入排序算法
#includeusing namespace std;//插入排序 void insert_sort(int *array,int n){ for(int i=1;i<n;i++) { int k=i-1; int temp =array[i]; ...
分类:编程语言   时间:2014-10-12 17:30:58    阅读次数:185
leetcode - Search in Rotated Sorted Array II
Follow up for "Search in Rotated Sorted Array": What if duplicates are allowed? Would this affect the run-time complexity? How and why? Write a function to determine if a given target is in the...
分类:其他好文   时间:2014-10-12 16:06:48    阅读次数:185
自己封装的python——DBUtilS,大家多多指教
这个Utils用了第三方库DBUtils,我经过又一层了简单封装,自认为还是挺简洁的,只实现了增删改查 import MySQLdb,functools from DBUtils.PooledDB import PooledDB import sys reload(sys) sys.setdefaultencoding('utf-8') sys.path.append('../'...
分类:数据库   时间:2014-10-12 15:00:51    阅读次数:755
google在线测试练习题3
Problem The Latin alphabet contains 26 characters and telephones only have ten digits on the keypad. We would like to make it easier to write a message to your friend using a sequence of keypresses t...
分类:其他好文   时间:2014-10-12 12:54:58    阅读次数:163
Linux笔记2--权限
观察文件类型statfile: ASCII data binary 或者有没有用到动态函式库type-t显示他的意义 file. alias. builtin内建-a列出PATH中-p显示外部指令的完整文件名档案特殊权限: id(列出自己信息)在原来改权限3个数字之前再加一个1个数字 chmod n...
分类:系统相关   时间:2014-10-12 11:14:07    阅读次数:228
Linux笔记3--查找
whereis locate 在数据库去寻找, updatedb 更新数据库,需要rootfind 在硬盘里查找(比较慢)locate-i忽略大小写的差异-r后面可接正则表示法的显示方式which (寻找可执行文件)-a将所有由PATH目录中可以找到都指令均列出而不止第一个被找到的指令名称where...
分类:系统相关   时间:2014-10-12 10:09:37    阅读次数:235
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!