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...
分类:
其他好文 时间:
2015-03-10 15:16:50
阅读次数:
146
A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes w...
分类:
其他好文 时间:
2015-03-09 00:24:54
阅读次数:
207
Problem:DescriptionYour task is to judge whether the input is a legal regular expression.A regular expression is defined as follow:1: 0 and 1 are both...
分类:
其他好文 时间:
2015-03-08 21:20:11
阅读次数:
199
Given a non-empty tree with root R, and with weight Wiassigned to each tree node Ti. Theweight of a path from R to Lis defined to be the sum of the we...
分类:
其他好文 时间:
2015-03-08 11:38:19
阅读次数:
217
比较简单,加一个B数组判重即可Recaman's SequenceTime Limit:3000MSMemory Limit:60000KTotal Submissions:21743Accepted:9287DescriptionThe Recaman's sequence is defined ...
分类:
其他好文 时间:
2015-03-08 00:02:47
阅读次数:
232
Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Nc is the number of distinct common numbers shared by the two sets,
and Nt is the total number of distinct n...
分类:
其他好文 时间:
2015-03-07 17:13:09
阅读次数:
156
Balanced Binary Tree问题:Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary ...
分类:
其他好文 时间:
2015-03-07 15:40:43
阅读次数:
108
Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes wit...
分类:
其他好文 时间:
2015-03-06 23:33:39
阅读次数:
201
问题描述:在一个index.html网页中,引入了jquery脚本,但是却出现错误,提示$ is not defined Document window.onload=function (){ console.log($); //$ is not defined}...
分类:
Web程序 时间:
2015-03-06 14:06:08
阅读次数:
133
Given two strings S1 and S2, S = S1 - S2 is defined to be the remaining string after taking all the characters in S2 from
S1. Your task is simply to calculate S1 - S2 for any given strings. However,...
分类:
其他好文 时间:
2015-03-06 11:21:17
阅读次数:
140