码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
401. Binary Watch
【题目】 【题目】 Total Accepted: 10330 Total Submissions: 24061 Difficulty: Easy Contributors: Admin A binary watch has 4 LEDs on the top which represent the ...
分类:其他好文   时间:2016-10-31 09:14:54    阅读次数:252
104. Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farthest l ...
分类:其他好文   时间:2016-10-31 00:43:28    阅读次数:212
HDFS(Hadoop Distributed File System )
HDFS(Hadoop Distributed File System ) HDFS(Hadoop Distributed File System )Hadoop分布式文件系统。是根据google发表的论文翻版的。论文为GFS(Google File System)Google 文件系统(中文,英文 ...
分类:其他好文   时间:2016-10-30 19:43:43    阅读次数:314
好!recover-binary-search-tree(难)& 两种好的空间O(n)解法 & 空间O(1)解法
下面我之前的解法,也很好,通过两个数字来记录可能的出错位置,并且在遍历的同时,更新这个位置。需要对出错的规律有深刻了解,比如在解法中,first_result位置就始终没有变过,因为一旦找到就可以不变,通过second_result位置的改变,就能满足条件: ...
分类:其他好文   时间:2016-10-30 19:22:39    阅读次数:213
maven安装和配置
一、下载maven maven下载页 里面有一些版本区别,binary比较小,适合直接在项目中使用,source带了源代码,windows系统下载zip后缀的 apache-maven-3.3.9-bin.zip 8.22M 是绿色的,解压到相应目录就行 二、配置环境变量 1、增加"M2_HOME" ...
分类:其他好文   时间:2016-10-30 00:09:49    阅读次数:197
leetcode 112 Path Sum ----- java
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 given sum. F ...
分类:编程语言   时间:2016-10-29 19:20:50    阅读次数:162
leetcode 113 Path Sum II ----- java
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 ...
分类:编程语言   时间:2016-10-29 19:15:49    阅读次数:173
leetcode 110 Balanced Binary Tree ----- java
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 dept ...
分类:编程语言   时间:2016-10-29 19:03:07    阅读次数:214
leetcode 111 Minimum Depth of Binary Tree ----- java
Given a binary tree, find its minimum depth. The minimum depth is the number of nodes along the shortest path from the root node down to the nearest l ...
分类:编程语言   时间:2016-10-29 18:35:35    阅读次数:217
110.Balanced Binary Tree 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 bina ...
分类:其他好文   时间:2016-10-29 02:10:03    阅读次数:187
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!