完成一个函数,输入一个二叉树,该函数输出它的镜像。
分类:
其他好文 时间:
2014-04-29 21:25:58
阅读次数:
457
这里送上一道微软的笔试题,具体题目如下:Time Limit: 10000msCase
Time Limit: 1000msMemory Limit: 256MBDescriptionConsider a string set that each
of them consists of {0,...
分类:
其他好文 时间:
2014-04-29 21:23:55
阅读次数:
662
一、样式:二、js 三、html
div在浏览器窗口中的位置是,居上200px,居左200px。四、图示(top/left/right/bottom具体指示)
分类:
其他好文 时间:
2014-04-29 21:22:58
阅读次数:
477
/** * Copyright 2002-2006,2009 The Apache Software
Foundation. * * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use ....
分类:
其他好文 时间:
2014-04-29 21:16:42
阅读次数:
532
求由所有的点组成的三角形中周长最小的三角形的周长1.将所有的点按横坐标大小排序2.从第一个点开始往后枚举,判断能否组成三角形,判断当前三角形周长是否小于已经得到的最小周长代码如下:#include#include#include#includeusing
namespace std;const do...
分类:
其他好文 时间:
2014-04-29 21:14:42
阅读次数:
504
逻辑运算符python不用&& ||
!表示与或非,用andornot,优先级是not > and > or。bool类型:True 和 False条件语句if expression1:
;elif expression2: ;else: ;字符串函数word = raw_inpu...
分类:
编程语言 时间:
2014-04-29 21:12:45
阅读次数:
492
插入操作,删除操作和置换操作都是单点的,所以不需要lazy标记。这个很简单,都是两次RotateTo,一次Splay操作就搞定。
求最大连续字段和的操作和线段树的题目类似,只需要保存最左边的连续最大字段和,最右边的连续最大字段和,整个子树的连续最大字段和就OK,整个子树的和就OK。
注意PushUp...
分类:
其他好文 时间:
2014-04-29 21:11:43
阅读次数:
628
题意:求N!中末尾0的个数 其实就是5的个数 因为2*5=10
肯定n中2的个数比5的个数多#includeusing namespace std;int main(){ int n; int t,d; int sum;
scanf("%d",&t); while(t...
分类:
其他好文 时间:
2014-04-29 21:09:41
阅读次数:
346
.net
4.5已经发布很久了,但是一直也没有静下心来好好的研究微软给开发者带来的喜悦。今天我将简单的介绍下 async + await
这对搭档的出现,如何让频繁假死的界面飞起来(其实只是不再阻塞UI线程而已,标题党一下)建议大家先了解下 IAsyncReuslt
,做过异步的应该都知道它怎么用吧...
分类:
其他好文 时间:
2014-04-29 21:08:41
阅读次数:
516
public abstract
classAsyncTaskextendsObjectjava.lang.Object?android.os.AsyncTaskClass
OverviewAsyncTask enables proper and easy use of the UI thread. ...
分类:
移动开发 时间:
2014-04-29 21:05:32
阅读次数:
748