码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
红黑树
介绍还有一种平衡二叉树:红黑树(Red Black Tree),红黑树由Rudolf Bayer于1972年发明,当时被称为平衡二叉B树(symmetric binary B-trees),1978年被Leonidas J. Guibas和Robert Sedgewick改成一个比較摩登的名字:红黑...
分类:其他好文   时间:2015-02-08 16:46:49    阅读次数:144
[LeetCode] 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 below binary tree, 1 ...
分类:其他好文   时间:2015-02-08 16:46:31    阅读次数:135
leetcode_34_Search for a Range
欢迎转载,如有错误或疑问请留言纠正,谢谢 Given a sorted array of integers, find the starting and ending position of a given target value. Your algorithm's runtime complexity must be in the order of O(log n). I...
分类:其他好文   时间:2015-02-08 12:57:17    阅读次数:171
leetcode_33_Search in Rotated Sorted Array
新手入门,如果错误请留言纠正,谢谢 Search in Rotated Sorted Array 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 1 2). You are give...
分类:其他好文   时间:2015-02-08 09:07:30    阅读次数:134
安装Maven
下载进入官网下载页面:http://maven.apache.org/download.html我用的是windows,下载apache-maven-3.2.5-bin.zip:Maven 3.2.5 (Binary zip)apache-maven-3.2.5-bin.zipapache-mave...
分类:其他好文   时间:2015-02-08 00:13:28    阅读次数:378
binary search Template
Binary search is a famous question in algorithm. For a given sorted array (ascending order) and a target number, find the first index of this number i...
分类:其他好文   时间:2015-02-07 18:40:45    阅读次数:117
leetcode_29_Divide Two Integers
版权所有,欢迎转载,转载请注明出处,谢谢 Divide Two Integers Divide two integers without using multiplication, division and mod operator. If it is overflow, return MAX_INT. 用减法做:超时。例如:(dividend, divisor) = ...
分类:其他好文   时间:2015-02-07 14:31:58    阅读次数:165
leetcode 113. Path Sum II
Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree andsum =...
分类:其他好文   时间:2015-02-07 14:23:22    阅读次数:169
this function has none of deterministic, no sql,or reads sql data in its declaration and binary logging is enabled
原址:http://blog.chinaunix.net/uid-20639775-id-3031821.htmlThisfunctionhasnoneofDETERMINISTIC,NOSQL解决办法创建存储过程时出错信息:ERROR 1418 (HY000): This function has...
分类:数据库   时间:2015-02-07 12:57:04    阅读次数:153
Unique Binary Search Tree II
这道题和上一道的思路一样,只是在BST的处理上注意下,包括二叉树的复制,二叉树的调整。 1 vector b; 2 class Solution { 3 public: 4 TreeNode* CopyTree(TreeNode* t) 5 { 6 TreeNode*...
分类:其他好文   时间:2015-02-07 00:22:44    阅读次数:246
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!