码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
leetcode_98_Validate Binary Search Tree
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 98 Validate Binary Search Tree Given a binary tree, determine if it is a valid binary search tree (BST). Assume a BST is defined as follows: The left subtree o...
分类:其他好文   时间:2015-03-11 14:58:29    阅读次数:122
leetcode_154_Find Minimum in Rotated Sorted Array II
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 154 Find Minimum in Rotated Sorted Array II  Suppose a sorted array is rotated at some pivot unknown to you beforehand. (i.e., 0 1 2 4 5 6 7 might become 4 5 6 7 0 ...
分类:其他好文   时间:2015-03-11 14:57:45    阅读次数:135
leetcode_99_Recover Binary Search Tree
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 99 Recover Binary Search Tree Two elements of a binary search tree (BST) are swapped by mistake. Recover the tree without changing its structure. Note: A soluti...
分类:其他好文   时间:2015-03-11 14:56:13    阅读次数:146
leetcode_124_Binary Tree Maximum Path Sum
欢迎大家阅读参考,如有错误或疑问请留言纠正,谢谢 124 Binary Tree Maximum Path Sum Given a binary tree, find the maximum path sum. The path may start and end at any node in the tree. For example: Given the belo...
分类:其他好文   时间:2015-03-11 14:55:12    阅读次数:124
Leetcode-190 Reverse Bits
问题描述: Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as 0...
分类:其他好文   时间:2015-03-11 14:47:57    阅读次数:175
Binary Search Tree Iterator
Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Callingnext()will return the next...
分类:其他好文   时间:2015-03-11 12:25:10    阅读次数:100
Path Sum
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 g...
分类:其他好文   时间:2015-03-11 09:17:40    阅读次数:123
Binary Tree Level Order Traversal II
Binary Tree Level Order Traversal II问题:Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, le...
分类:其他好文   时间:2015-03-11 09:15:51    阅读次数:125
Maximum Depth of Binary Tree
求二叉树的最大深度/** * Definition for binary tree * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */ int m...
分类:其他好文   时间:2015-03-10 23:06:11    阅读次数:160
Same Tree
/** * Definition for binary tree * struct TreeNode { * int val; * struct TreeNode *left; * struct TreeNode *right; * }; */bool isSameTree(...
分类:其他好文   时间:2015-03-10 22:44:42    阅读次数:144
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!