题目:Recover Binary Search TreeTwo elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A ...
                            
                            
                                分类:
其他好文   时间:
2014-06-28 10:26:38   
                                阅读次数:
253
                             
                    
                        
                            
                            
                                首先创建一张表Create Table TranTable( Id INT IDENTITY(1,1) PRIMARY KEY, Priority TINYINT--最大值255)1.再执行下面的语句:set XACT_ABORT ON begin tran INSERT INTO TranTabl...
                            
                            
                                分类:
其他好文   时间:
2014-06-27 20:32:49   
                                阅读次数:
277
                             
                    
                        
                            
                            
                                Singleton.h#define singleton_h(name) + (instancetype)shared##name;#if __has_feature (objc_arc)#define singleton_m(name) \static id _instance; \\+ (id)...
                            
                            
                                分类:
编程语言   时间:
2014-06-26 16:39:23   
                                阅读次数:
193
                             
                    
                        
                            
                            
                                Given an integern, generate a square matrix filled with elements from 1 ton2in spiral order.For example,Givenn=3,You should return the following matri...
                            
                            
                                分类:
其他好文   时间:
2014-06-26 15:55:21   
                                阅读次数:
200
                             
                    
                        
                            
                            
                                Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.TreeNode *createSearchTree(ListNode *&hea...
                            
                            
                                分类:
其他好文   时间:
2014-06-26 00:12:57   
                                阅读次数:
289
                             
                    
                        
                            
                            
                                How to create QTP Shared Object RepositoryTo create a shared object repository by performing following steps1) Creating a Shared Object Repository2) A...
                            
                            
                                分类:
其他好文   时间:
2014-06-25 13:07:34   
                                阅读次数:
220
                             
                    
                        
                            
                            
                                今天玩了下豌豆荚的登船测试,还是蛮有意思滴哒~~总结啦下就是调试工具的熟练使用啦进入测试:第一关:看了下页面没有任何点击的地方就打开了调试工具,找了下elements,很轻松的找到哒点击链接进入第二关第二关:第二关的密码也是藏在elements中啦,就是密码有点长,刚开始自己输的还输错了,导致落水哒...
                            
                            
                                分类:
其他好文   时间:
2014-06-25 12:25:25   
                                阅读次数:
193
                             
                    
                        
                            
                            
                                【题目】
Given an unsorted array of integers, find the length of the longest consecutive elements sequence.
For example,
Given [100, 4, 200, 1, 3, 2],
The longest consecutive elements sequence is [1, 2, 3, 4]. Return its length: 4.
Your algorithm should run...
                            
                            
                                分类:
其他好文   时间:
2014-06-25 07:55:42   
                                阅读次数:
244
                             
                    
                        
                            
                            
                                Given a collection of integers that might contain duplicates, S, return all possible subsets.
Note:
Elements in a subset must be in non-descending order.The solution set must not contain duplica...
                            
                            
                                分类:
其他好文   时间:
2014-06-24 20:58:32   
                                阅读次数:
230
                             
                    
                        
                            
                            
                                如果遇到mysql-libs-5.1.73-3.el6_5.x86_64conflicts with file from package Percona-Server-server报错,有两种情况导致这个问题:
1)卸载操作系统预装的mysql-libs包
rpm -qa | grep -i libs | grep -i mysql
rpm -e mysql-libs
2)安装Percona-Server-shared-compat-5.5.33-rel31.1.566.rhel6.x86_64.rpm包(...
                            
                            
                                分类:
数据库   时间:
2014-06-24 18:23:49   
                                阅读次数:
247