码迷,mamicode.com
首页 >  
搜索关键字:leaf    ( 924个结果)
JSONObjectWithData方法里options参数选择解释
NSJSONReadingMutableContainers  Specifies that arrays and dictionaries are created as mutable objects.    //  创建可变的数组或字典 接收    NSJSONReadingMutableLeaves  Specifies that leaf strings in the JSON o...
分类:Web程序   时间:2015-06-29 20:34:07    阅读次数:141
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).我的算法: 1. 首先获得树的高度 2. 层序递归遍历二叉树实现如下:package leet...
分类:其他好文   时间:2015-06-29 15:02:29    阅读次数:130
Sum Root to Leaf Numbers
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Find the tota...
分类:其他好文   时间:2015-06-26 09:22:17    阅读次数:89
Leetcode--easy系列6
#104 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-06-24 22:38:28    阅读次数:164
leetCode(22):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,#,#,15,7}, ...
分类:其他好文   时间:2015-06-22 11:14:13    阅读次数:94
Path Sum
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 ...
分类:其他好文   时间:2015-06-20 16:55:12    阅读次数:118
Binary Tree Level Order Traversal II
Description:Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to r...
分类:其他好文   时间:2015-06-20 15:33:52    阅读次数:99
[LeetCode] Path Sum II
Path Sum II   Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For example: Given the below binary tree and sum = 22, 5 ...
分类:其他好文   时间:2015-06-18 17:29:24    阅读次数:108
LeetCode:113 Path Sum II
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree andsum =...
分类:其他好文   时间:2015-06-18 00:36:46    阅读次数:69
LeetCode112 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-06-17 23:18:38    阅读次数:155
共924条   上一页 1 ... 52 53 54 55 56 ... 93 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!