码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
[LeetCode] Path Sum
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...
分类:其他好文   时间:2015-04-10 12:56:54    阅读次数:109
[Java]leetcode173 Binary Search Tree Iterator
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST....
分类:编程语言   时间:2015-04-10 09:32:42    阅读次数:181
Binary Tree Right Side View
题目:Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exa...
分类:其他好文   时间:2015-04-10 06:32:46    阅读次数:104
[LeetCode]Validate Binary Search Tree
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 only nodes with keys less than the...
分类:其他好文   时间:2015-04-09 23:54:16    阅读次数:304
mac 配置tomcat
步骤下载Tomcat,我下的是Tomcat 7.0.14(Binary Distributions tar.gz)。解压,文件夹改名为Tomcat移动该文件夹,至你习惯的目录,比如/Library执行/Library/Tomcat/bin下的startup.sh打开http://localhost:...
分类:系统相关   时间:2015-04-09 23:39:09    阅读次数:181
20150316 SQL
一SQL Server(一)初步 1、SQL Server的简介 2、SQL的语言特点 (1)交互式(2)嵌入式(二)主要组件 1、服务管理器 2、企业管理器 3、建立服务器组 4、建立服务器(三)查询分析二、语言基础 (一)数据类型 1、二进制数据 binary[(n)]//固定长度 varcha...
分类:数据库   时间:2015-04-09 23:27:42    阅读次数:218
[LeetCode]Binary Tree Right Side View
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom. For example: Given the following binary tre...
分类:其他好文   时间:2015-04-09 22:02:36    阅读次数:117
[JAVA]LeetCode199 Binary Tree Right Side View
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.For example: Given the following binary tree, 1...
分类:编程语言   时间:2015-04-09 22:02:12    阅读次数:145
[LeetCode]Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \ 3 4 4 3...
分类:其他好文   时间:2015-04-09 21:57:21    阅读次数:131
Minimum Depth of Binary Tree
求一棵二叉树的最低子树的高度 思路:用队列实现广度优先搜索即可,将每一层的节点放入队列,然后弹出时将下一层节点放入,遇到叶子节点时即返回当前的高度 class Solution {public: int minDepth(TreeNode *root) { if (!root) return 0; ...
分类:其他好文   时间:2015-04-09 21:42:15    阅读次数:105
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!