码迷,mamicode.com
首页 >  
搜索关键字:binary trees    ( 12390个结果)
C/C++ 十六进制char*与Binary char*相互转换
1. 十六进制char* 转 Binary char*例如:“fedcba9876543210” 转换为:char bin[8] ={0xfe,0xdc,0xba,0x98,0x76,0x54,0x32,0x10}形式。 代码:/*两个字符转换成一个字符,长度为原来的1/2*/ static void Hex2Char(char *szHex, unsigned char *rch) {...
分类:编程语言   时间:2015-05-07 16:52:13    阅读次数:384
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 ...
分类:其他好文   时间:2015-05-07 16:43:08    阅读次数:114
[leetcode] Convert Sorted Array to Binary Search Tree
Convert Sorted Array to Binary Search TreeGiven an array where elements are sorted in ascending order, convert it to a height balanced BST.分析: 我们知道,BS...
分类:其他好文   时间:2015-05-07 16:23:48    阅读次数:134
Ubuntu 15.04 Gogs(git 版本库) 二进制安装
1.下载 http://gogs.io/docs/installation/install_from_binary.html 下载最新版的 wget https://github.com/gogits/gogs/releases/download/v0.6.1/linux_amd64.zip 2.新建用户 adduser git密码自己输入 3.解压缩 unz...
分类:系统相关   时间:2015-05-07 14:39:11    阅读次数:229
[leetcode] Populating Next Right Pointers in Each Node
Populating Next Right Pointers in Each NodeGiven a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLi...
分类:其他好文   时间:2015-05-07 14:23:26    阅读次数:157
【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'...
分类:其他好文   时间:2015-05-07 13:54:38    阅读次数:99
LeetCode Binary Tree Right Side View
Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exampl...
分类:其他好文   时间:2015-05-07 10:01:09    阅读次数:101
UVA 12063(dp记忆化)
UVA - 12063 Zeros and Ones Time Limit: 3000MS   Memory Limit: Unknown   64bit IO Format: %lld & %llu Submit Status Description Binary numbers and their pattern o...
分类:其他好文   时间:2015-05-07 06:30:27    阅读次数:220
144. Binary Tree Preorder Traversal
题目:Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,2,3]....
分类:其他好文   时间:2015-05-07 06:27:10    阅读次数:118
Maximum Depth of Binary Tree -- leetcode
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 leaf node. 基本思路: 深度优先遍历。 在leetcode上实行执行时间...
分类:其他好文   时间:2015-05-06 23:08:25    阅读次数:184
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!