码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
ubuntu系统分区方案
一、各文件及文件夹的定义/bin:bin是binary(二进制)的缩写。存放必要的命令 存放增加的用户程序。 /bin分区,存放标准系统实用程序。/boot:这里存放的是启动LINUX时使用的一些核心文件。存放内核以及启动所需的文件等/dev:dev是device(设备)的缩写。存放设备文件.这个目...
分类:系统相关   时间:2014-12-27 06:43:35    阅读次数:259
[LeetCode]96.Unique Binary Search Trees
【题目】 Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example, Given n = 3, there are a total of 5 unique BST's. 1 3 3 2 ...
分类:其他好文   时间:2014-12-26 21:41:23    阅读次数:162
SHA256 和 byte2hex
今天项目要做Stringsign=byte2hex(SHA256(dataString))运算,找到appache的包觉得不错,在这里记录一下,方便以后用到:jar包下载路径:http://commons.apache.org/proper/commons-codec/download_codec.cgi用到的类:org.apache.commons.codec.binary.DegestUtilsorg.apache...
分类:其他好文   时间:2014-12-26 18:49:25    阅读次数:281
LeetCode:Sum Root to Leaf Numbers
题目描述: Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 which represents the number 123. Fi...
分类:其他好文   时间:2014-12-26 18:46:42    阅读次数:178
WCF与WebService的区别
WCF 支持多种通信协议 Http/Https 、TCP/UDP、MSMQ、命名管道、对等网、 消息可达性、事务流等。WCF 可以与ASP.NET 集成、共享一个上下文(HttpContext)。WCF 支持多种消息传输格式 :text,binary,mtom,Json 等。WCF 安全性要强:支....
分类:Web程序   时间:2014-12-26 18:16:12    阅读次数:313
LeetCode[Tree]: Binary Tree Zigzag Level Order Traversal
Given a binary tree, return the zigzag level order traversal of its nodes' values. (ie, from left to right, then right to left for the next level and alternate between). For example: Given binary tr...
分类:其他好文   时间:2014-12-26 16:46:08    阅读次数:159
Leetcode:Flatten Binary Tree to Linked List 解题报告
Flatten Binary Tree to Linked ListGiven a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / ...
分类:其他好文   时间:2014-12-26 14:19:14    阅读次数:310
CLRS 2.3 c++实现
官方伪代码: int iteative_binary_search(int Array[], int v,int length) { int left = Array[0]; int right = Array[length-1]; int i = 0; int mid = (length / 2); while (left <= right&&i<length)...
分类:编程语言   时间:2014-12-26 13:02:17    阅读次数:213
[leetcode] Grey Code
题目:(Backtracking)The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting...
分类:其他好文   时间:2014-12-26 00:54:18    阅读次数:213
LeetCode[Tree]: Convert Sorted Array to Binary Search Tree
Given an array where elements are sorted in ascending order, convert it to a height balanced BST. 这个问题比较简单,用递归是个不错的选择,我的C++代码实现如下: class Solution { public: TreeNode *sortedArrayToBST(vecto...
分类:其他好文   时间:2014-12-25 22:09:34    阅读次数:241
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!