码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
LeetCode --- 110. Balanced Binary Tree
题目链接: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 of the two subtrees ...
分类:其他好文   时间:2015-04-17 18:17:21    阅读次数:140
LeetCode --- 109. Convert Sorted List to Binary Search Tree
题目链接:Convert Sorted List to Binary Search Tree Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST. 这道题的要求是将有序链表转化成高度平衡的二叉搜索树(BST)。 1. 利...
分类:其他好文   时间:2015-04-17 18:16:32    阅读次数:165
LeetCode --- 107. Binary Tree Level Order Traversal II
题目链接: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 exam...
分类:其他好文   时间:2015-04-17 18:16:21    阅读次数:176
LeetCode --- 108. Convert Sorted Array to Binary Search Tree
题目链接:Convert Sorted Array to Binary Search Tree Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 这道题的要求是将有序数组转化成高度平衡的二叉搜索树(BST)。 由于数组有序,因此相当于二叉搜索树...
分类:其他好文   时间:2015-04-17 18:15:21    阅读次数:187
leetcode || 99、Recover Binary Search Tree
problem: Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note: A solution using O(n) space is pretty straight forwar...
分类:其他好文   时间:2015-04-17 18:14:49    阅读次数:148
leetcode || 100、Same Tree
problem: 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 and the nodes have the same ...
分类:其他好文   时间:2015-04-17 18:13:17    阅读次数:89
erlang sha
Sha_binary = crypto:hash(sha, "14292520241963008744cef58c7e0a284d06a2fcef5a61f4bee4").Hex_string = > || > >.string:to_lower(binary_to_list(Hex_string)...
分类:其他好文   时间:2015-04-17 17:48:02    阅读次数:162
【leetcode】Same Tree(easy)
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 an...
分类:其他好文   时间:2015-04-17 15:23:15    阅读次数:107
目标检测的图像特征提取之(二)LBP特征
LBP(Local Binary Pattern,局部二值模式)是一种用来描述图像局部纹理特征的算子;它具有旋转不变性和灰度不变性等显著的优点。它是首先由T. Ojala, M.Pietikäinen,和D. Harwood在1994年提出,用于纹理特征提取。而且,提取的特征是图像的局部的纹理特征;...
分类:其他好文   时间:2015-04-17 13:40:27    阅读次数:183
87. Scramble String Leetcode Python
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively. Below is one possible representation of s1 = "great": great / gr ...
分类:编程语言   时间:2015-04-17 11:38:26    阅读次数:129
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!