码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
LeetCode Unique Binary Search Trees
给定1到n这n个数,用它们能够构成多少种形状不同的二叉搜索树。...
分类:其他好文   时间:2016-01-31 17:20:49    阅读次数:165
[LeetCode] Binary Tree Upside Down 二叉树的上下颠倒
Given a binary tree where all the right nodes are either leaf nodes with a sibling (a left node that shares the same parent node) or empty, flip it up
分类:其他好文   时间:2016-01-31 09:34:38    阅读次数:204
Binary Tree Inorder Traversa
? package cn.edu.xidian.sselab.hashtable;import java.util.ArrayList;import java.util.List;import java.util.Stack;/** * * @author zhiyong wang * title:
分类:其他好文   时间:2016-01-31 02:38:19    阅读次数:179
LeetCode Binary Tree Inorder Traversal
不用递归来实现树的中序遍历。...
分类:其他好文   时间:2016-01-30 23:01:09    阅读次数:271
<cfloat> (float.h)
头文件: <cfloat> (float.h) 浮点类型的特性 这个头文件为特殊系统和编译器的实现描述了浮点类型的特征. 一个浮点数包含四个元素: 一个标志(a sign):正或负; 一个基数(a base):这表示一串不同的数字能够被一个个单一的数字所表示(2 就是二进制(binary),10就是
分类:其他好文   时间:2016-01-30 22:37:30    阅读次数:170
Lowest Common Ancestor of a Binary Tree leetcode
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowes
分类:其他好文   时间:2016-01-30 18:28:44    阅读次数:135
leetcode - Symmetric Tree
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree is symmetric: 1 / \ 2 2 /
分类:其他好文   时间:2016-01-30 17:51:16    阅读次数:113
Jan 29 - Flatten Binary Tree To Linked List; DFS;
Using DFS to traverse the tree. 4 cases for each node in the tree: case 1: it's a leaf node, set a pointer pointing to the node. We're reaching an end
分类:其他好文   时间:2016-01-30 09:37:00    阅读次数:204
Leetcode--34--Search for a Range
题型:binary search 关键在于二分查找中left,right,mid三者以及num[mid]与target的大小关系设置。 举例:nums = [1, 2, 2, 6, 7] target = 2 或者 3 根据这个样例可以得出以下具体结果 首先,分4种情况: 1. 如果target存在
分类:其他好文   时间:2016-01-30 02:37:18    阅读次数:140
【树】Flatten Binary Tree to Linked List(先序遍历)
题目: Given a binary tree, flatten it to a linked list in-place. For example,Given 1 / \ 2 5 / \ \ 3 4 6 The flattened tree should look like: 1 \ 2 \ 3
分类:其他好文   时间:2016-01-29 20:51:37    阅读次数:215
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!