题目
Given preorder and inorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
方法
根据树的中序遍历和前序遍历,来构造树,使用递归的思想。
Tre...
分类:
其他好文 时间:
2014-06-20 12:14:49
阅读次数:
262
重新发现Oracle太美之glogin.sql
刚开始接触Oracle的时候,有时候一登陆一个生产环境,经常会出现下面的情况:
[oracle@rh64 app]$ sqlplus / as sysdba
SQL*Plus: Release 11.2.0.4.0 Production on Thu May 15 03:17:34 2014
Copyright (c) 198...
分类:
数据库 时间:
2014-06-20 11:20:35
阅读次数:
195
Outer Join Query Over Dblink Can Fail With
ORA-904 (Doc ID 730256.1)To BottomModified:03-May-2013Type:PROBLEMIn this
DocumentSymptomsChangesCauseSolut...
分类:
数据库 时间:
2014-06-13 13:41:16
阅读次数:
376
强大的 CD 命令技巧 -rw-------. 1 root root 14808 Mar
13 12:31 .bash_history -rw-r--r--. 1 root root 18 May 20 2009 .bash_logout
-rw-r--r--. 1 root root 176 M...
分类:
系统相关 时间:
2014-06-11 09:51:09
阅读次数:
374
Oracle数据库默认情况下,会以DD-MON-YY的形式显示日期,其中DD是天数,MON是月份的前三个字母(大写),而YY是年份的最后两位。数据库实际上会为年份存储4位数字,但是默认情况下只会显示最后两位。
一个简单的语句:
SELECT TO_DATE('21-MAY-2014') FROM dual;
引发ORA-01843:无效的月份!...
分类:
其他好文 时间:
2014-06-08 14:40:51
阅读次数:
238
/* * Copyright (C) 2011 The Rexsee Open Source
Project * * Licensed under the Rexsee License, Version 1.0 (the "License"); *
you may not use this file...
分类:
移动开发 时间:
2014-06-08 07:38:06
阅读次数:
363
Evaluate the value of an arithmetic expression
in Reverse Polish Notation.Valid operators are +, -, *, /. Each operand may be
an integer or another ex...
分类:
其他好文 时间:
2014-06-07 20:34:41
阅读次数:
214
/*
* Copyright 2002-2008 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* Y...
分类:
其他好文 时间:
2014-06-07 14:55:47
阅读次数:
249
题目
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may assume that duplicates do not exist in the tree.
方法
根据树的中序遍历和后序遍历,来恢复树,使用递归的思想。
Tr...
分类:
其他好文 时间:
2014-06-07 14:50:37
阅读次数:
231
You are given the following information, but you may prefer to do some research for yourself.
1 Jan 1900 was a Monday.Thirty days has September,
April, June and November.
All the rest have thirty...
分类:
其他好文 时间:
2014-06-07 13:56:52
阅读次数:
166