Description Inexperienced in the digital arts, the cows tried to build a calculating engine (yes, it's a cowmpouter) using binary numbers (base 2) but...
分类:
其他好文 时间:
2015-04-05 11:52:16
阅读次数:
127
Trees
Accepts: 156
Submissions: 533
Time Limit: 2000/1000 MS (Java/Others)
Memory Limit: 65536/65536 K (Java/Others)
问题描述
今天CodeFamer去坎树。有N 棵树排成一排。他们被从1 到N 标号。第i 号树的高度为h i 。两棵未被...
分类:
其他好文 时间:
2015-04-05 10:37:08
阅读次数:
115
Binary Numbers
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)
Total Submission(s): 3372 Accepted Submission(s): 2026
Problem Description
Given a positiv...
分类:
其他好文 时间:
2015-04-05 09:17:31
阅读次数:
168
Trees
Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 205 Accepted Submission(s): 68
Problem Description
Today CodeFamer is goin...
分类:
其他好文 时间:
2015-04-05 09:07:22
阅读次数:
151
原题:
Given a binary tree, imagine yourself standing on the right side of it, return the values of the nodes you can see ordered from top to bottom.
For example:
Given the following binary tree...
分类:
其他好文 时间:
2015-04-05 09:06:21
阅读次数:
113
/**
* Definition for binary tree
* struct TreeNode {
* int val;
* TreeNode *left;
* TreeNode *right;
* TreeNode(int x) : val(x), left(NULL), right(NULL) {}
* };
*/
class Solutio...
分类:
其他好文 时间:
2015-04-05 09:04:00
阅读次数:
134
题目:
Given a binary treestruct TreeLinkNode {
TreeLinkNode *left;
TreeLinkNode *right;
TreeLinkNode *next;
}
Populate each next pointer to point to its next right node. If there is no next right...
分类:
其他好文 时间:
2015-04-05 01:16:00
阅读次数:
191
Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exampl...
分类:
其他好文 时间:
2015-04-05 01:12:03
阅读次数:
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 an...
分类:
其他好文 时间:
2015-04-05 01:00:40
阅读次数:
218
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:
1
/ 2 2
/ \ / 3 4 4 3
But the f...
分类:
其他好文 时间:
2015-04-04 23:50:46
阅读次数:
338