Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1.....
分类:
编程语言 时间:
2014-10-09 14:37:53
阅读次数:
215
以下是我习惯的vim配置,做个记录~_~" 文件编码set fileencoding=utf-8set encoding=utf-8set termencoding=utf-8" 开启语法高亮syntax enable" 防止在文件末尾追加换行符set noendoflineset binary"....
分类:
其他好文 时间:
2014-10-09 14:00:03
阅读次数:
161
The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integernrepresenting the total number...
分类:
其他好文 时间:
2014-10-09 13:16:43
阅读次数:
179
#include #include #include void binary_num(int, int);int main( int argc, char* argv[] ) { int a = 30; binary_num(a, sizeof(a) * 8); print...
分类:
其他好文 时间:
2014-10-09 01:27:27
阅读次数:
204
Custom ViewErrorsE1 在使用自定义CustomView时,出现以下runtime error:Android.View.InflateException: Binary XML File Line #LineNumberSolution: 自定义的View 子类(例如,类名为: F...
分类:
移动开发 时间:
2014-10-09 01:22:27
阅读次数:
248
An application binary interface includes linkage structures for interfacing a binary application program to a digital computer. A function in a reloca...
分类:
移动开发 时间:
2014-10-08 16:41:45
阅读次数:
302
1.binary heap的实现
BinaryHeap.h
#ifndef BINARYHEAP_H
#define BINARYHEAP_H
class BinaryHeap
{
public:
BinaryHeap(int N);
bool isEmpty();
void exchange(int i,int j);
...
分类:
其他好文 时间:
2014-10-08 16:22:45
阅读次数:
260
[leetcode]Given n, how many structurally unique BST's (binary search trees) that store values 1...n?...
分类:
其他好文 时间:
2014-10-08 12:00:15
阅读次数:
159
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n.
For example,
Given n = 3, your program should return all 5 unique BST's shown below.
1 3 ...
分类:
其他好文 时间:
2014-10-08 11:52:35
阅读次数:
202
Given a binary tree, return the inorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,3,2].
/**
* Definition for b...
分类:
其他好文 时间:
2014-10-08 10:45:45
阅读次数:
106