1. Trees Tree is a recursive structure. 1.1 math nodes https://class.coursera.org/principlescomputing-001/wiki/view?page=trees 1.2 CODE无parent域的树 http ...
分类:
编程语言 时间:
2017-05-05 14:23:10
阅读次数:
293
http://www.lintcode.com/en/problem/binary-tree-preorder-traversal/ 注意点:非递归;将结果作为参数传递的遍历;分治 1 //分治 2 public ArrayList<Integer> preorderTraversal(TreeNo ...
分类:
其他好文 时间:
2017-05-05 12:57:08
阅读次数:
136
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 identical a ...
分类:
其他好文 时间:
2017-05-05 10:41:01
阅读次数:
142
1.TextWriter(Reader)分别是对连续字符系列处理的编写器(读写器),来自System.IO 2.StringWriter(Reader)继承TextWriter(Reader),它主要是对字符串进行处理的类,样例如下: TextWriter stringwriter = new St ...
Following are some general papers about ABI and EABI. Entrance https://en.wikipedia.org/wiki/Application_binary_interface PowerPc Embedded Application ...
分类:
其他好文 时间:
2017-05-04 20:02:12
阅读次数:
207
计算机存储单位一般用b、B、KB、MB、GB、TB、PB、EB、ZB、YB、BB来表示,它们之间的关系是: 比特位 bit (Binary Digits):存放一位二进制数即 0 或 1。最小的存储单位: 注:“兆”为百万级数量单位. ...
分类:
其他好文 时间:
2017-05-04 14:43:54
阅读次数:
115
题目: Invert a binary tree. 4 / \ 2 7 / \ / \ 1 3 6 9 to 4 / \ 7 2 / \ / \ 9 6 3 1 解答: 遍历每个节点 直接交换他们的左右节点 代码: public static TreeNode invertTree(TreeNode ...
分类:
编程语言 时间:
2017-05-04 14:38:24
阅读次数:
150
Description: 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 ...
分类:
其他好文 时间:
2017-05-04 14:33:33
阅读次数:
150
使用Xcode创建的工程Project是单独分开的,如果想要几个工程同时存在,可以通过创建工作空间Workspace。工作空间是对各工程的集合,工程文件名的后缀为.xcodeproj,工作空间文件名的后缀为.xcworkspace。 静态链接库 在公司中有些核心代码,我们不能提供源代码,而又需要复用 ...
分类:
移动开发 时间:
2017-05-04 10:58:59
阅读次数:
183
微积分基本公式的例题和部分课后题 linux目录架构/ 根目录/bin 常用的命令 binary file 的目錄/boot 存放系统启动时必须读取的档案,包括核心 (kernel) 在内/boot/grub/menu.lst GRUB设置/boot/vmlinuz 内核/boot/initrd 核 ...
分类:
其他好文 时间:
2017-05-03 22:46:53
阅读次数:
196