Given a 2D board containing 'X' and 'O',
capture all regions surrounded by 'X'.
A region is captured by flipping all 'O's into 'X's
in that surrounded region.
For example,
X X X X
X O O X...
分类:
其他好文 时间:
2014-08-28 14:55:59
阅读次数:
209
Given a collection of numbers, return all possible permutations.
For example,
[1,2,3] have the following permutations:
[1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2],
and [3,2,1].
思...
分类:
其他好文 时间:
2014-08-28 14:52:49
阅读次数:
158
Given a collection of numbers that might contain duplicates, return all possible unique permutations.
For example,
[1,1,2] have the following unique permutations:
[1,1,2], [1,2,1],
and [2,1,1].
...
分类:
其他好文 时间:
2014-08-28 14:51:19
阅读次数:
148
上篇文章介绍了如何使用Qt Creator和Visual Studio构建Windows Phone 8.1应用并且在Windows Phone 8.1模拟器上运行。当然了,能够运行在模拟器只能算第一步,能够运行在真机上并且顺利地发布在Windows Phone应用商店则是我们的目标。为了达到这个目标,我们需要先注册成为Windows Phone的开发者,并且解锁手机,这样才能让我们的程序在Windows Phone 8.1手机上顺利运行。...
分类:
移动开发 时间:
2014-08-28 13:19:19
阅读次数:
218
log 的优先级别解读,参阅源码 log4cpp-0.3.5rc3/include/log4cpp/Priority.hh由高到低EMERGFATALALERTCRITERRORWARNNOTICEINFODEBUGNOTSET对应到 Category 相应函数,参阅源码 log4cpp-0.3.5...
分类:
其他好文 时间:
2014-08-28 12:48:21
阅读次数:
294
1)Exception :shutdown failed: ENOTCONN (Transport endpoint is not connected)
问题描述:
socket shutdonwOutput时出现异常,这个问题可能是多次关闭同一个socket所导致。我这里出现这个问题的原因是server端和client端都执行断开链接的操作:
一端(qt实现)执行: socket->d...
分类:
其他好文 时间:
2014-08-28 11:26:49
阅读次数:
152
前面写的Mina的示例,都是可以通过telnet登录的,并且可以相互交互。现在采用ssl加密的方式,对建立连接时,进行加密连接。这样,双方只有统一的加密,然后才可以连接。密钥的生成之前有说过,里面有引用站内某个程序员的博文,这里用的代码也是出自他手。package com.example.mina....
分类:
其他好文 时间:
2014-08-28 11:19:29
阅读次数:
231
Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1]. 1...
分类:
其他好文 时间:
2014-08-28 11:12:49
阅读次数:
209
# 笔记软件主界面 ## 这东西大概介绍 > 我想做一个基于oschina的跨平台的笔记软件(做得好就分享给大家,做的不好就自己收藏....,oschina openapi方面已经熟悉了一下,但是Qt还不是很熟悉,因为还是学习中...),...
分类:
其他好文 时间:
2014-08-28 04:19:29
阅读次数:
445
ANT编译打包1:用ADT工具自带的打包: 1:切换到项目目录: 运行,android update project -p . android update project -p ./ --library ../com.example.plugin1.ifs2:刷新:多了两个目录, 3:local....
分类:
数据库 时间:
2014-08-28 00:43:48
阅读次数:
476