码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
C++中lower_bound函数和upper_bound函数
STL中关于二分查找的函数有三个lower_bound 、upper_bound 、binary_search 。这三个函数都运用于有序区间(当然这也是运用二分查找的前提),下面记录一下这两个函数。ForwardIter lower_bound(ForwardIter first, ForwardI...
分类:编程语言   时间:2014-12-01 00:42:59    阅读次数:257
【LeetCode】Binary Tree Level Order Traversal
Binary Tree Level Order TraversalGiven a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).Fo...
分类:其他好文   时间:2014-11-30 21:18:59    阅读次数:226
rpm与yum命令的初步认识
RPM:Red Hat package manager(RedHat软件包管理工具),现在为RPM is Package Manager好比windows里的文件扩展名为·exe的软件包。RPM的包装包到底是什么啦?它是二进制包(binary)以及源代码包(source)的两种。二进制包里边包括了已...
分类:其他好文   时间:2014-11-30 21:17:44    阅读次数:256
leetcode Flatten Binary Tree to Linked List
题目:给定一个棵树,将其转换成flattened tree。只有右节点的,类似于链表,且在原址操作。例如:Given 1 / \ 2 5 / \ \ 3 4 6The flattened tree should look l...
分类:其他好文   时间:2014-11-30 18:38:38    阅读次数:209
linux 系统目录
/bin 可执行二进制文件binary 如 cp 所有用户都有权限执行/boot 启动目录 加载内核vmlinuz/dev 计算机上所有的设备 抽象为文件 sda1/etc 所有配置configuration文件/home 家目录 每个用户在home下都有一个专门文件夹 保存该用户的东西root是....
分类:系统相关   时间:2014-11-30 18:35:26    阅读次数:246
【LeetCode】Binary Tree Zigzag Level Order Traversal
Binary Tree Zigzag Level Order TraversalGiven a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then...
分类:其他好文   时间:2014-11-30 18:29:54    阅读次数:204
【LeetCode】Construct Binary Tree from Preorder and Inorder Traversal
Construct Binary Tree from Preorder and Inorder TraversalGiven preorder and inorder traversal of a tree, construct the binary tree.Note:You may assume...
分类:其他好文   时间:2014-11-30 16:46:40    阅读次数:150
[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 ...
分类:其他好文   时间:2014-11-30 16:42:57    阅读次数:200
【LeetCode】Construct Binary Tree from Inorder and Postorder Traversal
Construct Binary Tree from Inorder and Postorder TraversalGiven inorder and postorder traversal of a tree, construct the binary tree.Note:You may assu...
分类:其他好文   时间:2014-11-30 15:20:40    阅读次数:128
数据结构选讲-二叉查找树(Binary Search Tree)
摘要本文主要讨论的内容包括:BST的性质以及基本操作分析。作为最基本的数据结构,二叉查找树(后文记为BST)本身不仅易于理解,代码精简,而且通过添加不同的特性,可以实现许多高级的数据结构,例如:添加颜色信息,升级为红黑树;添加高度和平衡信息,升级为AVL树;更改节点数量,成为2-3-4树等更为复杂的...
分类:其他好文   时间:2014-11-30 13:52:12    阅读次数:408
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!