码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果
Leetcode:Convert Sorted List to Binary Search Tree
Description :Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.分析:这道题目简单版是把一个排序好的数组转成平衡的二叉树...
分类:其他好文   时间:2014-06-16 10:51:54    阅读次数:237
[leetcode]Gray Code @ Python
原题地址:https://oj.leetcode.com/problems/gray-code/题意:The gray code is a binary numeral system where two successive values differ in only one bit.Given a...
分类:编程语言   时间:2014-06-16 07:42:27    阅读次数:242
[leetcode]Maximum Depth of Binary Tree @ Python
原题地址:https://oj.leetcode.com/problems/maximum-depth-of-binary-tree/题意:Given a binary tree, find its maximum depth.The maximum depth is the number of n...
分类:编程语言   时间:2014-06-12 13:55:34    阅读次数:210
Leetcode | 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 the depth...
分类:其他好文   时间:2014-06-12 08:10:28    阅读次数:194
Careercup | Chapter 4
二叉查换树,左孩子小于等于根,右孩子大于根。完全二叉树,叶子都在最后一层,所有结点(除了叶子)都有两个孩子。平衡二叉树,左右子树的高度在一定范围内。4.1 Implement a function to check if a binary tree is balanced. For the purp...
分类:其他好文   时间:2014-06-12 08:09:04    阅读次数:167
二叉堆(binary heap)
堆(heap) 亦被称为:优先队列(priority queue),是计算机科学中一类特殊的数据结构的统称。堆通常是一个可以被看做一棵树的数组对象。在队列中,调度程序反复提取队列中第一个作业并运行,因而实际情况中某些时间较短的任务将等待很长时间才能结束,或者某些不短小,但具有重要性的作业,同样应当....
分类:其他好文   时间:2014-06-12 06:08:10    阅读次数:465
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!