码迷,mamicode.com
首页 >  
搜索关键字:add digits    ( 38457个结果
Leetcode | Sum Root to Leaf Numbers
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number.An example is the root-to-leaf path 1->2->3 which...
分类:其他好文   时间:2014-05-05 23:55:36    阅读次数:407
windows本地抓包
方法一:wireshark是无法抓取到数据包的,需要通过设置才可以。 具体方法如下: ①:以管理员身份运行cmd ②:route add 本机ip mask 255.255.255.255 网关ip 还需要设置路由器(不知道咋设置,知道的仁兄能否告之一下)才能利用wireshark抓本地包。方法.....
分类:Windows程序   时间:2014-05-05 23:33:12    阅读次数:469
Add Binary
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".思路:一个二进制字符串相加;首先从字符串的末尾开始,先二进制字符转化为数字,然后再相加;然后将...
分类:其他好文   时间:2014-05-05 23:10:15    阅读次数:319
delphi xe6 android ListView增加 Header或Footer 的方法
var Item1: TListViewItem;begin Item1 := ListView1.Items.Add; Item1.Purpose:=TListItemPurpose.Header;// Item1.Purpose:=TListItemPurpose.Footer; Item1.t...
分类:移动开发   时间:2014-05-03 22:34:33    阅读次数:547
java中利用反射机制绕开编译器对泛型的类型限制
首先看下面这个例子 public static void main(String[] args) { ArrayList al1 = new ArrayList(); al1.add(1); ArrayList al2 = new ArrayList(); al2.add("hello"); //int型链表和string型链表,结果为true System.out.p...
分类:编程语言   时间:2014-05-03 22:02:53    阅读次数:376
Local Functions
int BOOST_LOCAL_FUNCTION(int x, int y) { // Local function. return x + y; } BOOST_LOCAL_FUNCTION_NAME(add) BOOST_TEST(add(1, 2) == 3); // Local function call. int BOOST_LOCAL_FUNCTION(void) ...
分类:其他好文   时间:2014-05-03 21:47:48    阅读次数:332
【LeetCode】Reverse Integer
题目 Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = -123, return -321 Have you thought about this? Here are some good questions to ask before coding. Bonus points...
分类:其他好文   时间:2014-05-03 17:35:30    阅读次数:345
UVA之11549 - Calculator Conundrum
【题目】 Problem C CALCULATOR CONUNDRUM Alice got a hold of an old calculator that can display n digits. She was bored enough to come up with the following time waster. She enters a number k t...
分类:其他好文   时间:2014-05-03 15:37:03    阅读次数:308
HDU 2894 欧拉回路
#include #include #include #include #include using namespace std; #define N 20020 struct node{ int from, to, dou, nex; }edge[N]; int head[N], edgenum; void add(int u, int v,int dou){ node E={u,v,dou...
分类:其他好文   时间:2014-05-03 15:25:32    阅读次数:340
git命令汇总
一、创建命令 1、克隆一个git仓库 git clone 地址 2、建立一个新的本地git仓库 git init二、本地修改命令 1、查看仓库当前状态 git status 2、查看文件与上一个版本的差异 git diff 3、将修改加入暂存区 git add...
分类:其他好文   时间:2014-05-02 14:57:26    阅读次数:271
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!