Two elements of a binary search tree (BST) are swapped by mistake.
Recover the tree without changing its structure.
Note:
A solution using O(n)
space is pretty straight forward. Could you devis...
分类:
其他好文 时间:
2014-07-18 22:33:04
阅读次数:
328
quick-cocos2d-x 2.2.4
self.sprite = display.newSprite("bg.png")
self:addChild(self.sprite)
self.sprite:setTouchEnabled(true)
-- 设置触摸模式
-- self.sprite:setTouchMode(cc.TOUCH...
分类:
其他好文 时间:
2014-07-18 22:32:49
阅读次数:
257
Main Note - ogg的 Supplemental Logging and TRANDATA...
分类:
其他好文 时间:
2014-07-18 22:08:27
阅读次数:
218
AppDelegate.m部分- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWin...
分类:
其他好文 时间:
2014-07-18 21:16:44
阅读次数:
213
//AppDalegate部分- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { self.window = [[UIWin...
分类:
其他好文 时间:
2014-07-18 21:14:49
阅读次数:
229
以前做项目的时候就依葫芦画瓢的设置 { font-family:arial,”microsoft yahei”,simsun,sans-self; } 等类似的字体,然而当更多的设备和系统出现后,以前这样的设置已不能满足网页在各设备上的显示需求。就拿最简单的宋体(simsun)来说吧,在Window...
分类:
Web程序 时间:
2014-07-18 17:15:30
阅读次数:
351
1.在ubuntu下安装配置nginx, mysql, php安装步骤:参考:https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-0...
分类:
Web程序 时间:
2014-07-18 16:29:36
阅读次数:
302
给n和m,一行m个1<=x<=n的数。记c=.现在只能选择一个数x变成y,序列中所有等于x的值都变成y,求最小的c...
分类:
其他好文 时间:
2014-07-17 15:28:56
阅读次数:
177
1. 退出键盘 // 不想当第一响应者(退出键盘) [self.qqField resignFirstResponder]; [self.pwdField resignFirstResponder];// 直接退出键盘(条件:叫出键盘的控件必须是它的子控件或者它本身) [s...
分类:
其他好文 时间:
2014-07-17 00:11:04
阅读次数:
293
#import "MJcostom.h"@implementation MJcostom- (id)initWithFrame:(CGRect)frame{ self = [super initWithFrame:frame]; if (self) { self.backgroundColor=[U...
分类:
其他好文 时间:
2014-07-16 16:03:21
阅读次数:
196