Same Tree
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 n...
分类:
其他好文 时间:
2014-06-19 12:49:17
阅读次数:
301
水题,注意数据范围即可#include #include #include using
namespace std;typedef pair Point;int main(){ int x,y; cin >> x >>y;
Point a,b; if((x>0 && y > ...
分类:
其他好文 时间:
2014-06-16 10:47:47
阅读次数:
226
Activity:在Android的程序当中,Activity
一般代表手机屏幕的一屏。如果把手机比作一个浏览器,那么Acitivity就相当于一个网页。在Activity 当中可以添加一些Button、Check box
等控件。可以监听控件并处理用户的事件做出响应。一般一个Android 应用是...
分类:
移动开发 时间:
2014-06-16 09:49:19
阅读次数:
240
在最新的WWDC14上面,苹果发布了iOS8的一些新特性,而其中最让程序员兴奋的特性莫过于Extension,或者称之为Widget。下面就来尝鲜试验一把。一、Extension简介首先,苹果只支持下面这种类型的Extension
Point,也不支持第三方应用自己设置Extension Point...
分类:
移动开发 时间:
2014-06-16 00:35:22
阅读次数:
392
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to reach the...
分类:
其他好文 时间:
2014-06-15 19:28:54
阅读次数:
246
4.1 确认表单必填项目完整性
function check_submit(){
if($("tex_user_name").value=="") {alert("请输入用户名");return (false);}
if($("txt_user_pass").value=="") {alert("请输入密码");return (false);}
if($...
分类:
编程语言 时间:
2014-06-15 08:50:23
阅读次数:
272
The following scripts can be used to check for
huge line numbers:-- PO Requisitionsselect * from PO_REQUISITION_LINES_ALL where
LINE_NUM > 1000000000;...
分类:
数据库 时间:
2014-06-12 09:41:27
阅读次数:
295
二叉查换树,左孩子小于等于根,右孩子大于根。完全二叉树,叶子都在最后一层,所有结点(除了叶子)都有两个孩子。平衡二叉树,左右子树的高度在一定范围内。4.1
Implement a function to check if a binary tree is balanced. For the purp...
分类:
其他好文 时间:
2014-06-12 08:09:04
阅读次数:
167