1.昨天主要使用BAE对php的开发接口测试代码进行了调试,使用SVN,将对checkout下载的index.php进行代码编写,并再次上传commit。在微信中配置相应url和token即可。2.今天主要进行j2ee的开发部署与功能学习,初次听说到dom4j从xml进行解析的开源框架,还有xstr...
分类:
微信 时间:
2014-05-19 19:17:20
阅读次数:
571
Construct Binary Tree from Preorder and Inorder
TraversalGiven preorder and inorder traversal of a tree, construct the binary
tree.Note:You may assume...
分类:
其他好文 时间:
2014-05-19 18:43:40
阅读次数:
177
例如:要做到这样的效果点击每个选项时,会显示不同的div。我们的做法:在javascript中,先把所有的div的display设置为none,然后在根据当前的数组里的索引值进行一个显示div的过程。下面的例子就是:首先,把妙味课堂、妙味茶馆、苗味视频选项的div设置为display:none;然后...
分类:
编程语言 时间:
2014-05-19 18:38:33
阅读次数:
389
在上一个章节,我们了解来向index插入和检索数据的所有的方法。但是对于数据是怎么样分布和检索的很多细节都没有进行详细的解释。这种分开讲解(没有详细的解释)是故意的,你不用知道ES中数据是怎么分布,怎么工作的,但是就知道他能工作就行了。在本章节,我们将会深入的讲解内部的细节,帮助你数据是怎么存储在一...
分类:
其他好文 时间:
2014-05-19 17:06:04
阅读次数:
229
发生错误的代码:/*** 获取下载列表中的视频名称, * 若果存在添加的视频与它相同 *
则提示用户该视频已经添加到下载列表 * 备注:添加的视频超过3时,程序会崩溃 * 抛出错误: android.dat...
分类:
移动开发 时间:
2014-05-19 16:49:38
阅读次数:
2657
求树的最大路径和(Binary Tree Maximum Path Sum)...
分类:
其他好文 时间:
2014-05-18 18:25:41
阅读次数:
235
Binary Tree Level Order Traversal
Total Accepted: 12441 Total
Submissions: 40879My Submissions
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left t...
分类:
其他好文 时间:
2014-05-18 10:11:13
阅读次数:
337
对于本题,想到一个中序遍历后,判别是否为回文串的方法,却WA多次
class Solution {
public:
vector vectorValue;
void inOrder(TreeNode* root)
{
if(root!=NULL)
{
inOrder(root->left);...
分类:
其他好文 时间:
2014-05-18 06:38:58
阅读次数:
294
在lua中,可以通过元表来实现类、对象、继承等。与元表相关的方法有setmetatable()、__index、getmetatable()、__newindex。
具体什么是元表在这里就不细说了,网上很多介绍,这里主要讲与cocos2dx相关联的部分。
在lua-binding库中extern.lua里,有如下方法:
--Create an class.
function class(cl...
分类:
其他好文 时间:
2014-05-18 05:19:55
阅读次数:
298
1、
??
Path Sum
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below...
分类:
其他好文 时间:
2014-05-18 03:25:06
阅读次数:
301