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
题目描述:
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
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
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
Populating Next Right Pointers in Each NodeGiven a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLi...
分类:
其他好文 时间:
2015-05-07 14:23:26
阅读次数:
157
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
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
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
题目: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
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