题目描述 Given a binary tree, find its maximum depth. The maximum depth is the number of nodes along the longest path from the root node down to the farth ...
                            
                            
                                分类:
其他好文   时间:
2017-08-27 15:19:46   
                                阅读次数:
171
                             
                         
                    
                        
                            
                            
                                    题目大意:给出一个只包含字符'('和')'的字符串S,求最长有效括号序列的长度。 很有趣的题目,有助于我们对这种人类自身制定的规则的深入理解,可能我们大多数人都从没有真正理解过怎样一个括号序列是有效的,因此解题也无从说起。整道题目的难度在于我们对有效括号序列的理解和定义。下面给出我自己的定义:、 定 ...
                            
                            
                                分类:
其他好文   时间:
2017-08-26 22:14:16   
                                阅读次数:
249
                             
                         
                    
                        
                            
                            
                                    题目: anysubsequence of the other strings. A subsequence is a sequence that can be derived from one sequence by deleting some characters without changin ...
                            
                            
                                分类:
其他好文   时间:
2017-08-26 11:25:51   
                                阅读次数:
173
                             
                         
                    
                        
                            
                            
                                longest substring问题最长子串滑动窗口HashMap 1.题目描述Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcb... ...
                            
                            
                                分类:
其他好文   时间:
2017-08-25 12:23:46   
                                阅读次数:
146
                             
                         
                    
                        
                            
                            
                                longest substring问题最长子串滑动窗口HashMap 1.题目描述Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcb... ...
                            
                            
                                分类:
其他好文   时间:
2017-08-25 11:01:25   
                                阅读次数:
170
                             
                         
                    
                        
                            
                            
                                    Python 重载运算符 __add__ __radd__ __eq__ ...
                            
                            
                                分类:
编程语言   时间:
2017-08-24 21:25:56   
                                阅读次数:
224
                             
                         
                    
                        
                            
                            
                                    Given an array, find the longest increasing subsequence in this array. The same problem link. [LintCode] Longest Increasing Subsequence ...
                            
                            
                                分类:
其他好文   时间:
2017-08-24 10:31:38   
                                阅读次数:
95
                             
                         
                    
                        
                            
                            
                                    Find longest bitonic subsequence in given array. Bitonic subsequence first increases then decreases. Same problem link Longest Bitonic Subsequence ...
                            
                            
                                分类:
其他好文   时间:
2017-08-22 13:16:35   
                                阅读次数:
138
                             
                         
                    
                        
                            
                            
                                    最近死磕较高难度的题目 深感自己的基本数据结构掌握不够熟练 因此 刷题较慢了些 刷了一道简单的题目涨涨自信 题目:Given a string which consists of lowercase or uppercase letters, find the length of the longe ...
                            
                            
                                分类:
其他好文   时间:
2017-08-20 21:11:15   
                                阅读次数:
189
                             
                         
                    
                        
                            
                            
                                摘要 这是一个关于ZooKeeper正在使用的全序广播协议(Zab)的简短概述。它在概念上很容易理解,也很容易实现,并且提供很高的性能。在这篇文章里,我们会呈现ZooKeeper在Zab上的需求,也会展示这个协议该如何使用,然后我们总体概述一下这个协议是如何工作的。 1. 简介 在雅虎(Yahoo! ...
                            
                            
                                分类:
其他好文   时间:
2017-08-19 18:50:52   
                                阅读次数:
238