码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
[Locked] Binary Tree Vertical Order Traversal
Binary Tree Vertical Order Traversal
分类:其他好文   时间:2016-02-27 10:58:28    阅读次数:138
lintcode-easy-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 l
分类:其他好文   时间:2016-02-27 08:27:45    阅读次数:153
100.Same Tree(Swift待解)
Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical a
分类:编程语言   时间:2016-02-27 06:20:29    阅读次数:165
leetcode@ [173] Binary Search Tree Iterator (InOrder traversal)
https://leetcode.com/problems/binary-search-tree-iterator/ Implement an iterator over a binary search tree (BST). Your iterator will be initialized wi
分类:其他好文   时间:2016-02-26 23:23:24    阅读次数:202
LeetCode OJ 108. Convert Sorted Array to Binary Search Tree DFS求解
很有意思的一道题目。要求根据一个有序数组,构造出一棵高度平衡的BST。 每次找到数组的中间位置,这个便是BST的 根节点。左右孩子也很好找,根节点左边区域的中间节点便是左孩子,根节点的右边区域的中间节点便是右孩子。如此递归求解 108. Convert Sorted Array to Binary Search Tree My Submissions Question Total Accepted: 68378 Total...
分类:其他好文   时间:2016-02-26 10:33:45    阅读次数:160
lintcode-easy-Invert Binary Tree
Invert a binary tree. Example 1 1 / \ / \ 2 3 => 3 2 / \ 4 4 Challenge Do it in recursion is acceptable, can you do it without recursion? 1. 递归 /** *
分类:其他好文   时间:2016-02-26 06:56:51    阅读次数:237
Linux (一) 初识
1 终端 打开终端: Ctrl + Alt + F1 ~ F6 图形界面: Ctrl + Alt + F7 2 命令 1) 一般 date cal - calendar bc - binary calculator -- quit -- scale = number 结果输出小数 2) 常用 man
分类:系统相关   时间:2016-02-26 06:56:30    阅读次数:211
1102. Invert a Binary Tree (25)
The following is from Max Howell @twitter: Google: 90% of our engineers use the software you wrote (Homebrew), but you can't invert a binary tree on a
分类:其他好文   时间:2016-02-26 01:46:37    阅读次数:216
lintcode-easy-Insert Node in a Binary Search Tree
Given a binary search tree and a new tree node, insert the node into the tree. You should keep the tree still be a valid binary search tree. Example G
分类:其他好文   时间:2016-02-25 15:29:02    阅读次数:160
Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST. Subscribe to see which companies asked this question
分类:其他好文   时间:2016-02-25 11:42:24    阅读次数:116
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!