Description Resource
Path Location
Type
cvc-complex-type.2.4.a: Invalid content was found starting with element 'init-param'. One of '{"http://java.sun.com/xml/ns/javaee":enabled, "http://java.sun....
分类:
Web程序 时间:
2014-06-03 05:31:38
阅读次数:
514
1、
??
Construct Binary Tree from Inorder and Postorder Traversal
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in...
分类:
其他好文 时间:
2014-06-03 03:13:59
阅读次数:
195
三分查找:
#include
#define M 10
int main(void)
{
int front, near, mid1, mid2;
int n;
int found;
int a[M] = {1, 2, 3, 4, 5, 6, 7, 8, 9};
front = 0;
near = M - 1;
found = 0;
printf("input n:");...
分类:
编程语言 时间:
2014-06-03 01:38:47
阅读次数:
399
??
表、select语句、游标:返回结果都能是一个集合。
注意:游标的结果是一个集合。
--查询并打印员工的姓名和薪水
set serveroutput on
/*
光标:
1. 光标的属性: %isopen %rowcount(返回的行数)
%notfound %found
2. 默认情况下,一次性打开300个光标
SQL> show p...
分类:
数据库 时间:
2014-06-03 00:37:10
阅读次数:
431
1、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 leaf node.
clas...
分类:
其他好文 时间:
2014-06-02 23:13:22
阅读次数:
290
【题目】
Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.
【题意】
给定一个由0和1填充的二维矩阵,找一个全是1的最大矩形
【思路】
扫描二维矩阵,凡是扫到值为1的块时候,以当前块为矩形的左上角区块拓展,找最大矩阵。
先找出以每个“1”区块为左上角区块的最大矩形,然后求出最大全局的最大矩...
分类:
其他好文 时间:
2014-06-02 23:08:07
阅读次数:
289
介绍还有一种平衡二叉树:红黑树(Red Black Tree),红黑树由Rudolf
Bayer于1972年发明,当时被称为平衡二叉B树(symmetric binary B-trees),1978年被Leonidas J.
Guibas和Robert Sedgewick改成一个比較摩登的名字:红黑...
分类:
其他好文 时间:
2014-06-02 20:05:23
阅读次数:
375
【题目】
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.
Below is one possible representation of s1 = "great":
great
/ gr eat
/ \ / g r e at
/ ...
分类:
其他好文 时间:
2014-06-01 09:41:05
阅读次数:
196
【题目】
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of gray code. A gray code sequence must begin with 0.
...
分类:
其他好文 时间:
2014-06-01 09:16:29
阅读次数:
242
Phonegap 解决错误:Alert[ERROR]Error initializing
Cordova:Class not found发现bug后找原因网上说是 因为找不到 res/xml文件夹下的 config.xml
文件;但我有这个config.xml我想了一下 是不是因为没有找到指定的co...
分类:
移动开发 时间:
2014-05-31 20:21:27
阅读次数:
245