This is a fundamental and yet classic problem. I share my three solutions here:Iterative solution using stack ---O(n)time andO(n)space;Recursive solut...
分类:
其他好文 时间:
2015-06-03 00:46:35
阅读次数:
131
A classic tree traversal problem. I share my two solutions here: BFS and DFS.BFS: 1 vector> levelOrder(TreeNode *root) { 2 vector> levels;...
分类:
其他好文 时间:
2015-06-03 00:36:39
阅读次数:
161
Pretty classic greedy problem to work on. Here is how to approach it:1. "the smallest team is as large as possible." actually means, team members shou...
分类:
其他好文 时间:
2015-06-01 13:09:26
阅读次数:
132
Sync 2.0 supports boths new 2.0 folders and classic 1.4 folders, so when you upgrade your Sync it will leave existing folders as is.If we compare 2.0 ...
分类:
其他好文 时间:
2015-05-22 00:17:49
阅读次数:
558
Mifare Classic在08年的时候就已经被破解。一直以来都想实操一下,但是很有不务正业的嫌疑。最近有朋友问mifare的3次握手具体算法,于是google了一番,总结如下:Practical Attacks on the MIFARE Classic英国伦敦帝国大学的一份paper,61页,...
分类:
其他好文 时间:
2015-05-18 12:22:56
阅读次数:
1334
spring boot允许你使用“classic”Java开发工具或者使用命令行工具。 1. 对java开发人员的安装说明 你可以跟使用java标准库一样来使用spring boot。把适当的spring-boot-*.jar放到classpath中,spring boot并不需...
分类:
编程语言 时间:
2015-05-17 15:25:59
阅读次数:
187
<?xml version="1.0" encoding="UTF-8"?> <configuration> <appender name="stdout" ?class="ch.qos.logback.core.ConsoleAppender"> ?<layout class="ch.qos.logback.classic.PatternLayout"> ? <Pattern...
分类:
其他好文 时间:
2015-05-13 01:00:09
阅读次数:
367
iPhone手机解锁效果 自定义滚动条自定义滚动条 iPhone 4 iPad 2 iPod touch iPod classic iPod shuffle ...
分类:
移动开发 时间:
2015-05-04 01:06:27
阅读次数:
241
引言: 诡异而少见的java.lang.ClassNotFoundException: ch.qos.lorgback.classic.PatternLayout异常错误信息,在启动的时候,出现了异常,哪里出了问题呢?...
分类:
编程语言 时间:
2015-04-28 11:54:00
阅读次数:
276
IIS 7.0 支持两种管道模式: (1)IIS 7.0最新提供的集成管道模式(Integrated), (2)经典管道模式(Classic),经典管道模式是由先前版本的IIS提供的。 我们可以通过应用程序池设置管道模式,这项功能对IIS管理员尤其有用,因为这样既可以令一台服务器仅运行一种...
分类:
其他好文 时间:
2015-04-28 11:22:19
阅读次数:
125