Symmetric TreeGiven a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric...
分类:
其他好文 时间:
2014-06-15 18:55:36
阅读次数:
188
问题: 模式对话框里的CheckedChanged事件不被触发:解决方法:一、先不直接showModalDialog出要的页面,而是要放一个中单页面window.showModalDialog("Print/Index.aspx?HEADOID=" + strOid + "&rnd=" + Math...
分类:
其他好文 时间:
2014-06-15 17:22:39
阅读次数:
123
这个题目给定一棵树,以及树的每个树枝的苹果数量,要求在保留K个树枝的情况下最多能保留多少个苹果一看就觉得是个树形DP,然后想出 dp[i][j]来表示第i个节点保留j个树枝的最大苹果数,但是在树形过程中,有点难表示转移后来看了下大神的做法才知道其实可以用背包来模拟 树枝的去留,其实真的是个背包诶,每...
分类:
移动开发 时间:
2014-06-15 07:48:55
阅读次数:
244
题目:Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally ...
分类:
其他好文 时间:
2014-06-15 00:53:09
阅读次数:
314
1、Android环境搭配:下载jdk下载Android ADT下载安装Android SDK,地址:http://developer.android.com/sdk/index.html#download创建AVD2、下载Android NDK:http://developer.android.c...
分类:
移动开发 时间:
2014-06-14 21:26:49
阅读次数:
356
水到家了#include #include #include using namespace std;struct Point{ int index, pos; Point(int index_ = 0, int pos_ = 0){ index = index_; ...
分类:
其他好文 时间:
2014-06-14 21:21:40
阅读次数:
281
Question:Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, .....
分类:
其他好文 时间:
2014-06-14 20:59:07
阅读次数:
188
Description:Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next ...
分类:
其他好文 时间:
2014-06-14 18:41:40
阅读次数:
265
附网址:http://qt-project.org/doc/qt-5/qtquicklayouts-index.html
Qt Quick Layouts —— Qt Quick布局
Qt Quick Layouts是用来对用户界面内元素进行布局的一组QML类型。与positioners不同的是,Layouts会改变这些组件的尺寸。这使得它很适合用在尺寸可变的用户界面上。由于layou...
分类:
其他好文 时间:
2014-06-14 11:52:02
阅读次数:
341
1、继承Thread类,实现run方法
class TestThread
{
public static void main(String[] args)
{
Thread1 t1=new Thread1();
t1.start();
int index=0;
while(true)
{
if(index++==500)
{
t1.stopThread...
分类:
编程语言 时间:
2014-06-14 10:25:58
阅读次数:
317