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
同num8一样,此题考查的是二叉树的中序遍历,即先左子树再节点再右子树、
使用迭代法时,采用将节点和左子树均压入栈的方法,当左子树为NULL时,将top节点弹出,并存入结果列表,将next指针指向该节点的右节点
代码如下:
/**
* Definition for binary tree
* struct TreeNode {
* int val;
* Tre...
分类:
其他好文 时间:
2014-09-24 20:04:07
阅读次数:
177
package h1;
import java.lang.Thread.State;
import java.util.Stack;
public class Tree {
public static void main(String[] args) {
Tree tree = new Tree();
tree.insert(8);
tree.insert(5);
tre...
分类:
编程语言 时间:
2014-09-23 14:44:44
阅读次数:
308
参考http://blog.csdn.net/sdsxleon/article/details/18259973 很好https://github.com/2point0/Android-Database-Locking-Collisions-Example 示例http://www.eoeandr...
分类:
移动开发 时间:
2014-09-17 15:04:02
阅读次数:
252
/*
*locked
*query locked object and analyse reason,kill it
*
*/
select 'alter system kill session ''' || SID || ',' || SERIAL# || ''';'
from (select distinct a.sid,
...
分类:
数据库 时间:
2014-09-16 16:01:50
阅读次数:
238
一、对clock的基本认识 1 s3c2410的clock & power management模块包含三个部分:clock control、usb control、power control。现在的关注点是clock control。 2、s3c2410有两个pll(phase locked l....
分类:
其他好文 时间:
2014-09-12 21:54:34
阅读次数:
286
select p.spid,a.serial#, c.object_name,b.session_id,b.oracle_username,b.os_user_name from v$process p,v$session a, v$locked_object b,all_objects c whe...
分类:
数据库 时间:
2014-09-12 17:04:13
阅读次数:
253
org.tigris.subversion.javahl.ClientException: Attemptedto lock an already-locked dir异常解决方法myeclipse用svn提交的时候报错:Attempted to lock an already-locked dir...
分类:
系统相关 时间:
2014-09-12 16:51:43
阅读次数:
485
一、备份 1.锁定数据库: use admin db.runCommand({fsync:1,lock:1}) { “info” : “now locked against writes, use db.fsyncUnlock() to unlock”, “seeAlso” : “http://www.mongodb.org/display/DOCS/fsy...
分类:
数据库 时间:
2014-09-11 17:37:42
阅读次数:
237
几个月了,突然才发现草稿箱有篇翻译文章70%这样了没发表,干脆不管了.有时候真的发现时间就像乳沟,怎么挤还是那么一点
突然写个小程序, 用文物级的VB6随便写两行代码, 又回忆起坑爹的TextBox, 虽然你设置了Locked为True, 不能编辑
但是右键->粘贴仍然可以在光标处粘贴文字,,,
当然啦,这里TextBox主要用于输出,其实地球人都知道TextBox就是Windows...
分类:
其他好文 时间:
2014-09-05 16:19:31
阅读次数:
1170