码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
Add Binary字符数字相加,字符串合成
Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100".Hide TagsMathStringclass Solution {public: s...
分类:其他好文   时间:2014-11-18 23:24:37    阅读次数:199
[leetcode] 10. Symmetric Tree
这次我觉得我的智商太低,想了很久才写出来。题目是让求镜像二叉树判断,题目如下: Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, th...
分类:其他好文   时间:2014-11-18 13:15:28    阅读次数:181
Binary Tree Level Order Traversal II
题目描述: Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root). For example: Given binary tree {3,9,20,...
分类:其他好文   时间:2014-11-18 10:25:11    阅读次数:145
Binary Tree Inorder Traversal
Binary Tree Inorder TraversalGiven a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ ...
分类:其他好文   时间:2014-11-17 22:36:09    阅读次数:271
nodejs md5加密中文
function?md5(data)?{ ????var?Buffer?=?require("buffer").Buffer; ????var?buf?=?new?Buffer(data); ????var?str?=?buf.toString("binary"); ????var?crypto?=?require("crypto...
分类:Web程序   时间:2014-11-17 19:52:11    阅读次数:185
[LeetCode]Binary Tree Inorder Traversal
【题目】 Given a binary tree, return the inorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,3,2]. Note: Recursi...
分类:其他好文   时间:2014-11-17 17:52:41    阅读次数:191
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 n...
分类:其他好文   时间:2014-11-17 14:02:09    阅读次数:146
Unique Binary Search Trees
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1.....
分类:其他好文   时间:2014-11-17 13:56:57    阅读次数:141
LeetCode: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,20,#,#,15,7}, 3 / ...
分类:其他好文   时间:2014-11-17 12:26:22    阅读次数:171
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. For example: Given the below binary tr...
分类:其他好文   时间:2014-11-17 10:48:34    阅读次数:134
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!