题目: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...
分类:
其他好文 时间:
2015-05-17 02:03:11
阅读次数:
116
著名的CSAPP实验:二进制炸弹就是通过gdb和反汇编猜测程序意图,共有6关和一个隐藏关卡只有输入正确的字符串才能过关,否则会程序会bomb终止运行隐藏关卡需要输入特定字符串方会开启实验材料下载地址:http://csapp.cs.cmu.edu/2e/labs.html下面通关解法:反汇编:obj...
分类:
移动开发 时间:
2015-05-17 00:48:16
阅读次数:
940
题目:Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest...
分类:
其他好文 时间:
2015-05-17 00:40:24
阅读次数:
126
ASP.NET Web API 2.1内建支持XML、Json、Bson、form-urlencoded的MiME type,今天重点介绍下Bson。 BSON是由10gen开发的一个数据格式,目前主要用于MongoDB中,是MongoDB的数据存储格式。BSON基于JSON格式,选择JSON进行改...
Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.
The maximum depth is the number of nodes along the longest path from the root node down to the farthest leaf node....
分类:
其他好文 时间:
2015-05-16 20:38:48
阅读次数:
152
Binary Tree Level Order Traversal
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).
For example:
Given binary tree {3,9,...
分类:
其他好文 时间:
2015-05-16 20:35:48
阅读次数:
155
题目:Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains onl...
分类:
其他好文 时间:
2015-05-16 20:21:48
阅读次数:
91
1 /*************************** 2 https://leetcode.com/problems/binary-tree-preorder-traversal/ 3 @date 2015.5.13 4 @description 5 用非递归方法对二叉树进行先序...
分类:
其他好文 时间:
2015-05-16 18:19:07
阅读次数:
97
1 /************************** 2 https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/ 3 @date 2015.5.16 4 @descrip....
分类:
其他好文 时间:
2015-05-16 18:16:24
阅读次数:
167
https://leetcode.com/problems/maximum-depth-of-binary-tree/Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth i...
分类:
编程语言 时间:
2015-05-16 18:11:43
阅读次数:
124