摘要:        
问题: 给定由 "(" 和 ")" 构成的字符串, 求其中完全匹配的子串,最长长度为多少。 Example 1: Input: s = "(()" Output: 2 Explanation: The longest valid parentheses substring is "()". Exam    阅读全文
posted @ 2021-03-22 16:04
habibah_chang
阅读(35)
评论(0)
推荐(0)
        
            
        
        
摘要:        
问题: 爬楼梯问题。 给定n阶台阶,一次可以爬一阶or两阶。 求一共有多少种爬楼梯的方法。 Example 1: Input: n = 2 Output: 2 Explanation: There are two ways to climb to the top. 1. 1 step + 1 ste    阅读全文
posted @ 2021-03-22 14:38
habibah_chang
阅读(38)
评论(0)
推荐(0)
        
 
                    
                
 
 浙公网安备 33010602011771号
浙公网安备 33010602011771号