码迷,mamicode.com
首页 >  
搜索关键字:binary    ( 11734个结果)
89.Gray Code(回溯)
The gray code is a binary numeral system where two successive valuesdiffer in only one bit. Given a non-negative integer n representing the totalnumber of bits in the code, print the sequence of gray...
分类:其他好文   时间:2015-02-11 09:24:25    阅读次数:233
Leetcode:Binary Tree Preorder Traversal
Given a binary tree, return the preorder traversal of its nodes' values. For example: Given binary tree {1,#,2,3}, 1 2 / 3 return [1,2,3]. Note: Recursive soluti...
分类:其他好文   时间:2015-02-11 09:21:46    阅读次数:137
Lowest Common Ancestor in Binary Tree
The problem:Given node P and node Q in a binary tree T.Find out the lowest common ancestor of the two nodes.Analysis:The answer of this problem could ...
分类:其他好文   时间:2015-02-11 01:46:29    阅读次数:114
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 binarytree in which the depth of the two subtrees of every nodenever differ by...
分类:其他好文   时间:2015-02-10 23:18:11    阅读次数:372
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 le...
分类:其他好文   时间:2015-02-10 23:02:36    阅读次数:218
Binary Tree Level Order Traversal*
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary tree {3...
分类:其他好文   时间:2015-02-10 22:56:46    阅读次数:204
使用OpenSSL生成CSR文件,并申请全球通用SSL证书
http://www.openssl.org 上只有OpenSSL的原代码下载,为了方便Windows用户使用OpenSSL,我们特地为您准备了OpenSSL 0.9.8.a for win32的可执行版本(binary版) 下载地址是: http://www.myssl.cn/download/O...
分类:其他好文   时间:2015-02-10 11:12:07    阅读次数:212
Leetcode: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 1 \ ...
分类:其他好文   时间:2015-02-10 01:57:18    阅读次数:121
寒假集训.Skew Binary
Skew Binary Time Limit:3000MS     Memory Limit:0KB     64bit IO Format:%lld & %llu Submit Status Practice UVA 575 Description When a number is expressed in decimal, the k-th digit ...
分类:其他好文   时间:2015-02-09 23:10:07    阅读次数:222
[LeetCode]Binary Search Tree Iterator,解题报告
题目     LeetCode题目如下: mplement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST. Calling next() will return the next smallest number in the...
分类:其他好文   时间:2015-02-09 21:44:38    阅读次数:206
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!