原题地址:http://oj.leetcode.com/problems/two-sum/题意:找出数组numbers中的两个数,它们的和为给定的一个数target,并返回这两个数的索引,注意这里的索引不是数组下标,而是数组下标加1。比如numbers={2,7,11,17};
target=9。那...
分类:
编程语言 时间:
2014-04-30 21:45:43
阅读次数:
528
Windows@echo offmysqldump --add-drop-database
--add-drop-table -u root -p123456 dbname >
d:\db_backup\%date:~0,4%-%date:~5,2%-%date:~8,2%_%time:~0,2%-...
分类:
数据库 时间:
2014-04-30 21:41:43
阅读次数:
526
Binary String Matching时间限制:3000ms |
内存限制:65535KB难度:3描述Given two strings A and B, whose alphabet consist only ‘0’ and
‘1’. Your task is only to tell ho...
分类:
其他好文 时间:
2014-04-29 15:02:00
阅读次数:
564
2014-04-29
00:56题目:不用算数运算,完成加法。解法:那就位运算吧,用加法器的做法就可以了。代码: 1 // 18.1 add two numbers wihout
using arithmetic operator. 2 #include 3 using namespace std....
分类:
其他好文 时间:
2014-04-29 14:58:53
阅读次数:
383
一。利用Ctypes2014-04-29EXAMPLE://VS2012,新建WINDOWS
Project ,下一步,选择dll// test.h #includeextern "C" int __declspec(dllexport)add(int
x,int y);// .cpp#inclu....
分类:
编程语言 时间:
2014-04-29 11:32:47
阅读次数:
439
public class Facade { /** * @param args 外观模式 */ One
one; Two two; Three three; public Facade() { one=new One(); two=new Two();
three=new Three()...
分类:
其他好文 时间:
2014-04-29 11:15:47
阅读次数:
238
题目: There are two sorted arrays A and B of size m
and n respectively. Find the median of the two sorted arrays. The overall run
time complexity should...
分类:
其他好文 时间:
2014-04-29 10:32:46
阅读次数:
359
add the following text to .vimrc or .gvimrc: if
has("cscope") set csprg=/usr/bin/cscope set csto=0 set cst set nocsverb " add
any database in cur...
分类:
其他好文 时间:
2014-04-29 10:27:46
阅读次数:
398
You are given two linked lists representing two
non-negative numbers. The digits are stored in reverse order and each of their
nodes contain a single ...
分类:
其他好文 时间:
2014-04-29 10:17:46
阅读次数:
406
chkconfigchkconfig命令主要用来更新(启动或停止)和查询系统服务的运行级信息。谨记chkconfig不是立即自动禁止或激活一个服务,它只是简单的改变了符号连接。使用语法:chkconfig
[--add][--del][--list][系统服务] 或 chkconfig [--lev...
分类:
其他好文 时间:
2014-04-29 09:48:47
阅读次数:
322