题目:
Given two binary trees, write a function to check if they are equal or not.
Two binary trees are considered equal if they are structurally identical and the nodes have the same value....
分类:
其他好文 时间:
2014-10-25 23:09:06
阅读次数:
447
SQL SERVER数据库的三个常用连接解析:
USE [BI]
GO
DROP TABLE BI.dbo.TABLE_ONE;
GO
DROP TABLE BI.dbo.TABLE_TWO;
GO
CREATE TABLE BI.dbo.TABLE_ONE(
[ID] [int] NOT NULL,
[NAME] [nvarchar](50) NOT NULL
) ON...
分类:
数据库 时间:
2014-10-25 23:03:13
阅读次数:
207
http://acm.whu.edu.cn/land/problem/detail?problem_id=1047
Description
Recently, Flymouse reads a book about Algorithm and Data Structure. The book reads: there are two types of LCS Problems. One...
分类:
编程语言 时间:
2014-10-25 21:33:28
阅读次数:
291
DescriptionIn the two-player game "Two Ends", an even number of cards is laid out in a row. On each card, face up, is written a positive integer. Play...
分类:
其他好文 时间:
2014-10-25 18:32:56
阅读次数:
207
The count-and-say sequence is the sequence of integers beginning as follows:
1, 11, 21, 1211, 111221, ...
1 is read off as "one
1" or 11.
11 is read off as "two
1s" or 21.
21 is read off as ...
分类:
其他好文 时间:
2014-10-25 16:00:23
阅读次数:
184
DescriptionProductThe ProblemThe problem is to multiply two integers X, Y. (0 2 #include 3 #include 4 #include 5 #define UNIT 10 6 7 using n...
分类:
其他好文 时间:
2014-10-25 15:53:01
阅读次数:
251
DescriptionOverflowWrite a program that reads an expression consisting of two non-negative integer and an operator. Determine if either integer or the...
分类:
其他好文 时间:
2014-10-25 15:47:50
阅读次数:
182
Given two numbers represented as strings, return multiplication of the numbers as a string.
Note: The numbers can be arbitrarily large and are non-negative.
class Solution {
public:
std::str...
分类:
其他好文 时间:
2014-10-25 09:21:02
阅读次数:
155
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:
其他好文 时间:
2014-10-25 07:04:51
阅读次数:
220
Divide Two IntegersDivide two integers without using multiplication, division and mod operator.SOLUTION 11. 基本思想是不断地减掉除数,直到为0为止。但是这样会太慢。2. 我们可以使用2分法来加...
分类:
其他好文 时间:
2014-10-24 22:02:06
阅读次数:
279