题目链接:https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
题目:
Given preorder and inorder traversal of a tree, construct the binary tree.
Note:
You may ass...
分类:
其他好文 时间:
2016-05-22 12:25:16
阅读次数:
160
题目链接:https://leetcode.com/problems/bitwise-and-of-numbers-range/
题目:
Given a range [m, n] where 0
For example, given the range [5, 7], you should return 4.
思路:
32位整型,只需判断每一位在m~n之间是否有0存...
分类:
其他好文 时间:
2016-05-22 12:26:44
阅读次数:
170
题目链接:https://leetcode.com/problems/edit-distance/
题目:
Given two words word1 and word2, find the minimum number of steps required to convert word1 to word2. (each operation is counted as 1 step.)
...
分类:
其他好文 时间:
2016-05-22 12:23:54
阅读次数:
177
题目链接:https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/
题目:
Given inorder and postorder traversal of a tree, construct the binary tree.
Note:
You may a...
分类:
其他好文 时间:
2016-05-22 12:25:05
阅读次数:
187
Given two arrays, write a function to compute their intersection.Example:
Given nums1 = [1, 2, 2, 1], nums2 = [2, 2], return [2, 2].Note:
Each element in the result should appear as many times as it s...
分类:
其他好文 时间:
2016-05-22 12:25:05
阅读次数:
164
题目链接:https://leetcode.com/problems/longest-increasing-subsequence/
题目:
Given an unsorted array of integers, find the length of longest increasing subsequence.
For example,
Given [10, 9, 2, 5...
分类:
其他好文 时间:
2016-05-22 12:23:17
阅读次数:
213
在本章,你将学到怎么使用LibGD的粒子系统为Canyon Bunny添加特效,以及线性插值和其他几种提高游戏可视化外观的方法。你还将学会使用图形化编辑器设计一个dust(灰尘)自定义粒子效果。当玩家角色行走在rock对象之上时将显示该灰尘效果。我们还将介绍线性插值的概念,作为实践示例,我们为一个具有跟踪目标的相机实现平滑移动效果,并实现rock(平台)对象在水面上上下缓慢漂浮移动。
另外,...
分类:
其他好文 时间:
2016-05-22 12:23:44
阅读次数:
944
本文是基于周志明的《深入理解Java虚拟机》
Java 虚拟机的指令由一个字节长度的、代表着某种特定操作含义的操作码(Opcode)以及跟随其后的零至多个代表此操作所需参数的操作数(Operands)所构成。虚拟机中许多指令并不包含操作数,只有一个操作码。
如果忽略异常处理,那 Java 虚拟机的解释器使用下面这个伪代码的循环即可有效地工作:
do {
自动计算...
分类:
其他好文 时间:
2016-05-22 12:24:29
阅读次数:
335
作者:张华 发表于:2016-05-21版权声明:可以任意转载,转载时请务必以超链接形式标明文章原始出处和作者信息及本版权声明( http://blog.csdn.net/quqi99 )代码VMWare NSX使用OVS STT隧道,OVS是支持STT隧道,但是Neutron还不支持。所以我rebase了社区一个废弃很久的代码想测试一下TSO/GSO对其的影响(冲突很多,改动还有点大,代码见附...
分类:
其他好文 时间:
2016-05-22 12:24:40
阅读次数:
1459
前一篇已将 Linkit 7688DUO操作Arduino的原理和做法说明白了。现在,我们要为开发板接下各类Arduino的传感器和模块了。
一、首先要充分了解 Linkit 7688 DUO开发板的引出管脚
开发板有两排管脚,查了管脚说明书。我做了一个简图如下:
图中标识的 从ATmega32U4管脚接出的众多管脚,其中:D0-D13 为数字IO...
分类:
其他好文 时间:
2016-05-22 12:23:30
阅读次数:
281
ELF文件格式说明。...
分类:
其他好文 时间:
2016-05-22 12:22:18
阅读次数:
334
剧情提要:
[机器小伟]在[工程师阿伟]的陪同下进入了[九转金丹]之第八转的修炼。设想一个场景:
如果允许你带一台不连网的计算机去参加高考,你会放弃选择一个手拿计算器和草稿本吗
?阿伟决定和小伟来尝试一下用计算机算高考题会是怎样的感觉。
正剧开始:
星历2016年05月21日 11:31:19, 银河系厄尔斯星球中华帝国江南行省。
[工程师阿伟]正在和[机器小伟]一起做着20...
分类:
其他好文 时间:
2016-05-22 12:21:51
阅读次数:
147
Xiangqi
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 1357
Accepted: 347
Description
Xiangqi is one of the most popular two-player board games in China. Th...
分类:
其他好文 时间:
2016-05-22 12:23:02
阅读次数:
262
拔除心中的野草该对心中的野草满怀感激当我们冥想遇到困难时
所以,哪怕你修行时碰到困难,哪怕你打坐时感受到心的涟漪,但这些涟漪本身是可以帮到你的,所以你不应该被他们搅扰。
你应该对心中的野草满怀感激,因为到头来,它们将会滋养你的修行。如果 你体验过心中的野草是怎样转变成心灵养分的话,那么你的修行就可以突飞猛进。 要给我们的修行一些哲学或心理学的解释并不难,但那是不够的,我们必须对于 野草如何...
分类:
其他好文 时间:
2016-05-22 12:23:22
阅读次数:
275
一,先要配置ImageLoaderConfiguration这个类实现全局ImageLoader的实现情况
ImageLoaderConfiguration config = new ImageLoaderConfiguration.Builder(
this)
.memoryCacheExtraOptions(480, 800)
// max width, max he...
分类:
其他好文 时间:
2016-05-22 12:20:50
阅读次数:
126
Problem Description
The “Harry Potter and the Goblet of Fire” will be on show in the next few days. As a crazy fan of Harry Potter, you will go to the cinema and have the first sight, won’t you?Suppos...
分类:
其他好文 时间:
2016-05-22 12:20:11
阅读次数:
181
1.介绍
什么是PE文件?
PE文件是windows操作系统下使用的可执行文件格式。32位就直接叫PE或PE32,64位的就PE+或PE32+,注意不是PE64哦!!!!
学习PE文件其实就是学习结构体,里面储存了如何加载到内存,从何处开始运行,运行需要那些dll,需要多大的栈和内存等
初识PE文件
看看大概包括那些结构体吧
2.PE头...
分类:
其他好文 时间:
2016-05-22 12:19:40
阅读次数:
162