Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2014-07-02 22:34:44
阅读次数:
318
疯狂的暑假学习之 汇编入门学习笔记 (二)
参考:《汇编语言》 王爽 第三章
一、寄存器(内存访问)
1.DS和[address]
DS 数据段寄存器,用来存放数据段地址
[address] 用来表示数据段的偏移地址
同样跟CS一样,不可以通过 mov ds, 1000 给ds赋值
要通过通用寄存...
分类:
其他好文 时间:
2014-07-02 09:26:22
阅读次数:
196
Idiomatic Phrases Game
Time Limit: 2 Seconds Memory Limit: 65536 KB
Tom is playing a game called Idiomatic Phrases Game. An idiom consists of several Chinese characters and has a certain me...
分类:
其他好文 时间:
2014-07-02 08:11:52
阅读次数:
167
his topic describes the memory limits for supported Windows and Windows Server releases.Memory and Address Space LimitsPhysical Memory Limits: Windows...
debian wheezy 升级后, 因为授权错误, 导致密码给修改, 在debian的mysql safe下也无法进入.
我在/etc/mysql/my.cnf 里面已经修改了bind-address 为局域网ip
进而执行了
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTI...
分类:
数据库 时间:
2014-07-01 16:03:03
阅读次数:
207
access labels(访问标号)
类的成员可以定义为 private,这能够防止使用该类型的代码访问该成员。成员还可以定义为 public,这将使该整个程序中都可访问成员。
address(地址)
一个数字,通过该数字可在存储器上找到一个字节。
arithmetic types(算术类型)
表示数值即整数和浮点数的类型。浮点型值有三种类型:long double 、dou...
分类:
编程语言 时间:
2014-07-01 15:44:56
阅读次数:
277
Sorted Array:Given two sorted integer arrays A and B, merge B into A as one sorted array.Note:You may assume that A has enough space (size that is gre...
分类:
其他好文 时间:
2014-07-01 12:51:53
阅读次数:
202
题目
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
方法
/**
* Definition for singly-linked list.
* class ListNode {
...
分类:
其他好文 时间:
2014-07-01 11:31:40
阅读次数:
178
学习python时想要在gvim中配置python的编译环境,网上找到一个比较好用的vimrc配置,保存下来以备下次有需要。set encoding=utf-8set termencoding=utf-8set fileencodings=utf-8,chinese,latin-1if has("w...
分类:
Windows程序 时间:
2014-07-01 10:20:25
阅读次数:
1794
关键是在检测到手指移动的时候用mPath.quadTo的方法,android sdk解释是:
Add a quadratic bezier from the last point, approaching control point (x1,y1), and ending at (x2,y2). If no moveTo() call has been made fo...
分类:
移动开发 时间:
2014-07-01 08:07:39
阅读次数:
289