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-16 08:40:12
阅读次数:
131
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 le...
分类:
其他好文 时间:
2014-10-16 06:33:22
阅读次数:
238
# Definition for a binary tree node# class TreeNode:# def __init__(self, x):# self.val = x# self.left = None# self.right ...
分类:
其他好文 时间:
2014-10-16 03:27:21
阅读次数:
162
Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1.....
分类:
编程语言 时间:
2014-10-16 00:30:31
阅读次数:
210
【题目】
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
1
2
/
3
return [1,2,3].
Note: Recu...
分类:
其他好文 时间:
2014-10-15 23:57:11
阅读次数:
229
BLOB (binary large object),二进制大对象,是一个可以存储二进制文件的容器。在计算机中,BLOB常常是数据库中用来存储二进制文件的字段类型。BLOB是一个大文件,典型的BLOB是一张图片或一个声音文件,由于它们的尺寸,必须使用特殊的方式来处理(例如:上传、下载或者存放到一个数...
分类:
其他好文 时间:
2014-10-15 21:33:01
阅读次数:
176
Given two binary strings, return their sum (also a binary string).
For example,
a = "11"
b = "1"
Return "100".
class Solution {
public:
std::string addBinary(std::string a, std::string b)...
分类:
其他好文 时间:
2014-10-15 13:17:30
阅读次数:
174
Numeric Literal Formats = Binary literals and separators
个人解释为 「2 位元(2 进位)实字以及分隔符」
以前可以用的,主要就十进位以及十位进位如下:
var num1 = 1234; // 10 进位
var num2 = 0x1234; // 16 进位
2 进位实字怎麽宣告?
var num3 = 0b1010; //...
Problem Description
Bob is a strategy game programming specialist. In his new city building game the gaming environment is as follows: a city is built up by areas, in which there are streets, trees,f...
分类:
其他好文 时间:
2014-10-14 23:03:49
阅读次数:
178
[leetcode]Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area....
分类:
其他好文 时间:
2014-10-14 13:49:48
阅读次数:
148