You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single ...
分类:
其他好文 时间:
2014-10-27 22:58:01
阅读次数:
269
问题描述:
Given a binary tree, determine if it is height-balanced.
For this problem, a height-balanced binary tree is defined as a binary tree in which the depth of the two subtrees of
every node nev...
分类:
其他好文 时间:
2014-10-27 21:25:12
阅读次数:
193
问题描述:
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-27 21:17:54
阅读次数:
165
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-27 20:59:08
阅读次数:
164
Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of the first two lists.
题目描述:
类似以前C语言做的输入两个链表,按照顺序大小将其连接。
不过这次试着用JAVA做,...
分类:
其他好文 时间:
2014-10-27 17:38:37
阅读次数:
147
Question:Given two binary strings, return their sum (also a binary string).For example,a ="11"b ="1"Return"100"Solution: 1 #define MAX_STR_LEN (100...
分类:
其他好文 时间:
2014-10-27 12:31:45
阅读次数:
187
选择器的使用 id为one,class为one的div calss为mini id为two,class为one,Tetley为text的div calss为mini,titl为other ...
分类:
Web程序 时间:
2014-10-27 12:30:02
阅读次数:
348
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 an...
分类:
其他好文 时间:
2014-10-27 08:09:30
阅读次数:
167
10-0. Compile, execute, and test the programs in this chapter.
10-1. Rewrite the student-grading program from §9.6/166 to generate letter grades.
10-2. Rewrite the median function from §8.1.1/140 so...
分类:
编程语言 时间:
2014-10-26 22:59:49
阅读次数:
390
Add BinaryGiven two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".SOLUTION:指针指到两个字符串的末尾,不断往前推进,用carr...
分类:
其他好文 时间:
2014-10-26 22:40:47
阅读次数:
339