码迷,mamicode.com
首页 >  
搜索关键字:nodes    ( 4030个结果
leetcode - [6]Binary Tree Postorder Traversal
Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1].思路...
分类:其他好文   时间:2014-09-24 22:57:37    阅读次数:187
递归的应用--求二叉树最大深度和最小深度
【求最大深度】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. 这里说的最大深度是指最深叶子节点到根节点的路径长度 ...
分类:其他好文   时间:2014-09-24 16:09:37    阅读次数:200
Leetcode_num8_Binary Tree Preorder Traversal
题目:Given a binary tree, return the preorder traversal of its nodes' values. 此题即为二叉树的前序遍历,递归的方法很简单:先节点再左子树再右子树;迭代的方法可以利用栈存储来完成遍历过程。 补充递归与迭代的区别:许多问题是以递归的形式进行解释的,这只是因为它比非递归形式更为清晰。但是,这些问题的迭代往往比递归实现效率更...
分类:其他好文   时间:2014-09-24 11:24:56    阅读次数:206
二叉树的层序遍历
原题: 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 / 9 ...
分类:其他好文   时间:2014-09-23 20:29:17    阅读次数:243
使用Jsoup 抓取页面的数据
需要使用的是jsoup-1.7.3.jar包   如果需要看文档我下载请借一步到官网:http://jsoup.org/   这里贴一下我用到的 Java工程的测试代码  package com.javen.Jsoup; import java.io.IOException; import org.jsoup.Jsoup; import org.jsoup.nodes.Docu...
分类:Web程序   时间:2014-09-22 22:57:33    阅读次数:295
Eucalyptus常用查询命令
euca_conf --version 查看桉树版本euca_conf --list-clouds 查看云控器相关信息euca_conf --list-clusters 查看集群控制器相关信息euca_conf --list-scs 查看存储控制器相关信息euca_conf --list-nodes...
分类:其他好文   时间:2014-09-22 20:49:33    阅读次数:200
Extended symmetrical multiprocessor architecture
An architecture for an extended multiprocessor (XMP) computer system is provided. The XMP computer system includes multiple SMP nodes. Each SMP node i...
分类:其他好文   时间:2014-09-22 20:22:43    阅读次数:234
Binary Tree Preorder Traversal
[leetcode]Given a binary tree, return the preorder traversal of its nodes' values....
分类:其他好文   时间:2014-09-22 13:38:03    阅读次数:215
A multiprocessing system including an apparatus for optimizing spin-lock operations
A multiprocessing system having a plurality of processing nodes interconnected by an interconnect network. To optimize performance during spin-lock op...
分类:移动开发   时间:2014-09-22 00:56:21    阅读次数:394
LeetCode Binary Tree Inorder Traversal
Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].Note...
分类:其他好文   时间:2014-09-20 14:19:48    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!