LeetCode.4.longest-valid-parentheses

題目描述 給出一個僅包含字符’(‘和’)'的字符串,計算最長的格式正確的括號子串的長度。 對於字符串"(()「來講,最長的格式正確的子串是」()",長度爲2. 再舉一個例子:對於字符串")()())",來講,最長的格式正確的子串是"()()",長度爲4.javascript Given a string containing just the characters’(‘and’)’, find t
相關文章
相關標籤/搜索