问题: Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identic...
分类:
其他好文 时间:
2014-10-07 17:55:43
阅读次数:
127
ioctl 是用来设置硬件控制寄存器,或者读取硬件状态寄存器的数值之类的。而read,write 是把数据丢入缓冲区,硬件的驱动从缓冲区读取数据一个个发送或者把接收的数据送入缓冲区。ioctl(keyFd, FIONREAD, &b)得到缓冲区里有多少字节要被读取,然后将字节数放入b里面。接下来就能...
分类:
其他好文 时间:
2014-10-07 16:26:53
阅读次数:
196
Writing-a-Kernel-in-C++Write a Kernel in C++ToolsExamples will show hot to use :-GJGPP - a complete 32-bit C/C++ development system for INtel 80386(an...
分类:
编程语言 时间:
2014-10-07 04:15:53
阅读次数:
294
题目:Givennpairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, givenn= 3, a solution set is:"(((...
分类:
其他好文 时间:
2014-10-06 20:28:50
阅读次数:
186
To deal cards, we would like a method that removes a card from the deck and returns it. The list method pop provides a convenient way to do that. Sinc...
分类:
其他好文 时间:
2014-10-06 19:13:50
阅读次数:
201
原文:http://www.raywenderlich.com/2941/how-to-write-a-simple-phpmysql-web-service-for-an-ios-app 作为一个iPhone/iPad开发者,能够自己写一个简单的web服务器将是很有用的。 例如,你可能希望在软.....
分类:
移动开发 时间:
2014-10-06 12:01:40
阅读次数:
311
Java的基本输出流类是:java.io.OutputStream: public?abstract?class?OutputStream 这个类提供了写入数据所需的基本方法。这些方法包括: public?abstract?void?write(int?b)?throws?IOException
pub...
分类:
其他好文 时间:
2014-10-06 02:33:09
阅读次数:
172
Write a function to find the longest common prefix string amongst an array of strings.class Solution: # @return a string #最长公共前缀 def longestC...
分类:
编程语言 时间:
2014-10-05 20:35:58
阅读次数:
202
Shuffle'm Up
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 5953
Accepted: 2796
Description
A common pastime for poker players at a poker table is to sh...
分类:
其他好文 时间:
2014-10-05 17:26:38
阅读次数:
244
一个DumpDex的IDA插件
源码
import idaapi
import struct
def dumpdex(start, len, target):
rawdex = idaapi.dbg_read_memory(start, len)
fd = open(target, 'wb')
fd.write(rawdex)
fd.close()
def getdexlen...
分类:
其他好文 时间:
2014-10-05 16:41:58
阅读次数:
285