码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
【LeetCode】235. Lowest Common Ancestor of a Binary Search Tree
题目:Given a binary search tree (BST), find the lowest common ancestor (LCA) of two given nodes in the BST.According to thedefinition of LCA on Wikipedi...
分类:其他好文   时间:2015-08-18 18:30:36    阅读次数:121
【LeetCode】110 - Balanced Binary Tree
Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth...
分类:其他好文   时间:2015-08-18 16:12:00    阅读次数:130
PAT 1099. Build A Binary Search Tree (30)
1099. Build A Binary Search Tree (30)A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left su...
分类:其他好文   时间:2015-08-18 16:03:58    阅读次数:196
Effective Erlang —— 二进制型的构造和匹配
在 R12B 中,构造和匹配二进制型最自然的方式比前版中的要快得多。你可用如下简单的代码来构造一个二进制型:这么写(在 R12B 中)/求别这么写(在 R12B 之前的版本中)my_list_to_binary(List) -> my_list_to_binary(List, >).my_list_...
分类:其他好文   时间:2015-08-18 15:35:41    阅读次数:301
Construct Binary Tree from Preorder and Inorder Traversal
称号Given preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume that duplicates do not exist in the tree.方法依据树的中序遍历和前序...
分类:其他好文   时间:2015-08-18 14:04:51    阅读次数:143
tengine 黑白名单
http {... geo $whiteiplist { default 1; include limit/whiteip.conf; } map $whiteiplist $limit { 1 $binary_remote_add...
分类:其他好文   时间:2015-08-18 13:56:28    阅读次数:188
leetcode:Binary Tree Zigzag Level Order Traversal
Binary Tree Zigzag Level Order Traversal Given a binary tree, return the zigzag level order traversal of its nodes’ values. (ie, from left to right, then right to left for the next level and alternate...
分类:其他好文   时间:2015-08-18 10:16:08    阅读次数:105
LeetCode257——Binary Tree Paths
Given a binary tree, return all root-to-leaf paths. For example, given the following binary tree: 1 / 2 3 5 All root-to-leaf paths are: ["1->2->5", "1->3"] 实现: ...
分类:其他好文   时间:2015-08-17 23:47:51    阅读次数:188
[LeetCode] Binary Tree Paths 二叉树路径
Given a binary tree, return all root-to-leaf paths.For example, given the following binary tree: 1 / \2 3 \ 5All root-to-leaf paths are:["1->...
分类:其他好文   时间:2015-08-17 23:34:41    阅读次数:110
PAT 1086. Tree Traversals Again (25)
1086. Tree Traversals Again (25)An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that whe...
分类:其他好文   时间:2015-08-17 21:31:19    阅读次数:97
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!