码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
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 and sum ...
分类:其他好文   时间:2018-01-29 15:49:10    阅读次数:97
二叉树中的最大路径和 · Binary Tree Maximum Path Sum
[抄题]: [思维问题]: [一句话思路]: [输入量]:空: 正常情况:特大:特小:程序里处理到的特殊情况:异常情况(不合法不合理的输入): [画图]: [一刷]: [二刷]: [三刷]: [四刷]: [五刷]: [总结]: [复杂度]:Time complexity: O() Space com ...
分类:其他好文   时间:2018-01-29 15:46:45    阅读次数:98
最近公共祖先 · Lowest Common Ancestor
[抄题]: Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. “The lowest common ancestor is defined between two no ...
分类:其他好文   时间:2018-01-29 11:44:21    阅读次数:136
平衡二叉树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 t ...
分类:其他好文   时间:2018-01-28 23:21:42    阅读次数:190
数据库字段为null时jdbc获取的值
当数据库字段的值为 时,我们使用jdbc获取到的值为什么呢?对于varchar、char等类型当使用 时,根据常识轻松地知道值应该是 。但是,对于 、`float getInt getFloat NULL NULL 0`。 方法的注释如下。 但是当某一些字段的类型为 、`FLOAT NULL get ...
分类:数据库   时间:2018-01-28 20:00:42    阅读次数:463
MySQL中tinytext、text、mediumtext和longtext详解【转】
一、数字类型 类型 范围 说明 Char(N) [binary] N=1~255 个字元binary :分辨大小写 固定长度 std_name cahr(32) not null VarChar(N) [binary] N=1~255 个字元binary :分辨大小写 可变长度 std_addres ...
分类:数据库   时间:2018-01-28 16:26:58    阅读次数:169
Java之utf8中文编码转换
1 import org.apache.commons.codec.binary.Hex; 2 import org.junit.Test; 3 4 /** 5 * HBASE中文转换 6 */ 7 public class CHCode { 8 9 /** 10 * 中文转utf8 11 */ 1... ...
分类:编程语言   时间:2018-01-28 13:48:59    阅读次数:262
PAT 1066. Root of AVL Tree
An AVL tree is a self balancing binary search tree. In an AVL tree, the heights of the two child subtrees of any node differ by at most one; if at any ...
分类:其他好文   时间:2018-01-28 13:46:44    阅读次数:142
[LeetCode]Binary Search Tree Iterator
可以把中序遍历的过程融入到next函数中,可以更快,下边的做法是先遍历完,比较垃圾 ...
分类:其他好文   时间:2018-01-28 12:50:17    阅读次数:180
LeetCode 545. Boundary of Binary Tree
原题链接在这里:https://leetcode.com/problems/boundary-of-binary-tree/description/ 题目: Given a binary tree, return the values of its boundary in anti-clockwis ...
分类:其他好文   时间:2018-01-28 12:40:41    阅读次数:123
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!