When a file name is deleted from the directory tree, the file name's connection to the inode number is severed. If the file name is the last "link" to...
分类:
其他好文 时间:
2014-09-25 15:42:39
阅读次数:
177
在工作中主页实现Ztree Ztree的数据是后台返回的JSON对象
因为树是固定的所以每次刷新树
$.getJSON 的url都是相同的 问题来了 我修改 或者 新增树节点 然后刷新tree IE竟然毫无变化 在其他浏览器上面都OK
这让我纠结了
然后在网上搜索了一下资料发现 解决办法
解决办法:
Jquery 的 $.getJSON请求有一个缓存机制 就是在请求相同UR...
分类:
Web程序 时间:
2014-09-25 13:49:08
阅读次数:
504
今天项目上报出了一个这样的问题,如下:
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.csii.jincheng/com.csii.ui.MainMenuActivity}: java.lang.RuntimeException: Binary XML file line #1: You must s...
分类:
其他好文 时间:
2014-09-25 13:12:08
阅读次数:
279
Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,2,3].思路:...
分类:
其他好文 时间:
2014-09-25 03:56:48
阅读次数:
215
typedef struct tre{ int data; struct tre *left; struct tre *ringht;}tre;void tree(tre *t){ //printf("%d\n",t->data); if (t->left!=NULL) { tree...
分类:
其他好文 时间:
2014-09-24 23:21:57
阅读次数:
159
Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1].思路...
分类:
其他好文 时间:
2014-09-24 22:57:37
阅读次数:
187
题目链接In a rooted tree, thelowest common ancestor(or LCA for short) of two verticesuandvis defined as the lowest vertex that is ancestor of both that tw...
分类:
其他好文 时间:
2014-09-24 22:50:17
阅读次数:
296
第一节、B树、B+树、B*树 1.前言: 动态查找树主要有:二叉查找树(Binary Search Tree),平衡二叉查找树(Balanced Binary Search Tree),红黑树(Red-Black Tree ),B-tree/B+-tree/ B*-tree?(B~Tree)。前三者...
分类:
其他好文 时间:
2014-09-24 21:46:38
阅读次数:
244
Description给你一棵TREE,以及这棵树上边的距离.问有多少对点它们两者间的距离小于等于KInputN(n 2 3 #include 4 5 #include 6 7 #include 8 9 #include 10 11 #include 12 13 #inc...
分类:
其他好文 时间:
2014-09-24 21:11:57
阅读次数:
217
同num8一样,此题考查的是二叉树的中序遍历,即先左子树再节点再右子树、
使用迭代法时,采用将节点和左子树均压入栈的方法,当左子树为NULL时,将top节点弹出,并存入结果列表,将next指针指向该节点的右节点
代码如下:
/**
* Definition for binary tree
* struct TreeNode {
* int val;
* Tre...
分类:
其他好文 时间:
2014-09-24 20:04:07
阅读次数:
177