Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ ...
分类:
其他好文 时间:
2015-02-15 16:26:22
阅读次数:
118
Problem Description
The 15-puzzle has been around for over 100 years; even if you don't know it by that name, you've seen it. It is constructed with 15 sliding tiles, each with a number from 1 to 15 on it, and all packed into a 4 by 4 frame with one tile m...
分类:
编程语言 时间:
2015-02-15 09:29:04
阅读次数:
1023
A few weeks ago I discovered the Spans on Android,after reading the wonderfulpostbyFlavien Laurent.In this post I will describe how to realize a parti...
分类:
其他好文 时间:
2015-02-09 17:46:04
阅读次数:
196
uva 10123 No Tipping
As Archimedes famously observed, if you put an object on a lever arm, it will exert a twisting force around the lever's fulcrum. This twisting is called torque and is equal t...
分类:
其他好文 时间:
2015-02-08 16:57:24
阅读次数:
260
Buy TicketsTime Limit:4000MSMemory Limit:65536KB64bit IO Format:%I64d & %I64uSubmitStatusDescriptionRailway tickets were difficult to buy around the L...
分类:
其他好文 时间:
2015-02-06 16:26:29
阅读次数:
138
Symmetric Tree
Total Accepted: 43063 Total
Submissions: 137255My Submissions
Question
Solution
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around it...
分类:
其他好文 时间:
2015-02-05 11:18:16
阅读次数:
133
原文地址:http://docs.orchardproject.net/Documentation/Getting-around-the-dashboard想要查看文档目录请用力点击这里最近想要学习了解orchard,但却没有找到相关的中文文档,只有英文文档。于是决定自行翻译,以便日后方便翻阅。转载...
分类:
其他好文 时间:
2015-02-04 14:18:29
阅读次数:
152
Multipeer Connectivity框架扩充的功能与利用AirDrop传输文件非常类似,可以将其看作AirDrop不能直接使用的补偿,代价是需要自己实现。FireChat和See You Around等近场聊天App就是基于Multipeer Connectivity框架实现。...
分类:
其他好文 时间:
2015-02-03 17:23:52
阅读次数:
344
Railway tickets were difficult to buy around the Lunar New Year in China, so we must get up early and join a long queue…
The Lunar New Year was approaching, but unluckily the Little Cat still had schedules going here and there. Now, he had to travel by tra...
分类:
其他好文 时间:
2015-02-03 09:37:13
阅读次数:
222
CCTouch Class ReferenceInherits fromNSObjectDeclared inCCTouch.hOverviewThin wrapper around platform-specific touch events (ieUITouch). CCTouch is pla...
分类:
编程语言 时间:
2015-01-31 17:46:55
阅读次数:
218