题目:Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space....
分类:
编程语言 时间:
2014-08-05 05:17:28
阅读次数:
265
An example of in-order traversal application. My intuition is that, we have to serialize it into an array and check, but in-order traversal does exact...
分类:
其他好文 时间:
2014-08-05 03:03:48
阅读次数:
241
为什么我们需要恢复innodb的字典信息?当我们drop 一个表时,发现误操作,这时表结构又没有备份,那么想恢复数据是非常困难的。所以我们想恢复被删除的表时,首先就需要恢复表结构,目前已经有了undrop-for-innodb这个工具,相比之前的工具percona-data-recovery-too...
分类:
数据库 时间:
2014-08-03 23:03:36
阅读次数:
497
Recover Binary Search TreeTwo elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A sol...
分类:
其他好文 时间:
2014-07-31 23:13:00
阅读次数:
223
最近在做烧写工具的优化工作,有一些关于USB的内容需要总结一下其中包括设备的初始化过程和枚举过程。
在枚举的过程中,设备会一直等PC端的状态,当等到reset命令时会对设备进行重新枚举。但是这个reset终端是如何而来呢?
Halt Conditions
A control endpoint may recover from a halt condition upon receiving...
分类:
其他好文 时间:
2014-07-30 20:48:14
阅读次数:
168
Two elements of a binary search tree (BST) are swapped by mistake.
Recover the tree without changing its structure.
Note:
A solution using O(n)
space is pretty straight...
分类:
其他好文 时间:
2014-07-30 17:46:04
阅读次数:
244
leveldb作为一个KV存储引擎将数据持久化到磁盘,而对于一个存储引擎来说在存储过程中因为一些其他原因导致程序down掉甚至数据文件被破坏等都会导致程序不能按正常流程再次启动。那么遇到这些状况以后如何使程序最大程度的恢复数据就是非常重要的一项工作,leveldb也提供了这方面的工作。首先来看rec...
分类:
数据库 时间:
2014-07-29 17:23:52
阅读次数:
409
1、恢复过程查看的试图:1)v$recovery_file:查看需要恢复的datafile2)v$recovery_log:查看recover需要的redo日志3)v$archived_log:查看已经归档的日志2、手工完全恢复实验一:所有数据文件和控制文件都丢失1)先将控制文件dump到trace中SQL>alterdatabasebackupcontrolfi..
分类:
其他好文 时间:
2014-07-28 03:05:00
阅读次数:
201
If you have lost or forgot root password of RHEL7, you can follow this step to change to a new password, this is different with the RHEL6 single-user mode...
分类:
其他好文 时间:
2014-07-26 02:49:36
阅读次数:
276
MyNotebookinstalledwithdualbootOS:LinuxMint16andWindows7DuringLinuxMint17overwrittingversion16,Iselectedthewindowsbootpartitionasthemintbootloaderdevicebymistake,sowindows7failedtostartaftertheinstallation.torecoverthebootpartition,boottheNBwithwindows7inst..