Longest Valid Parentheses - LeetCode (Solution & Explanation | JavaScript)

preview_player
Показать описание
#longest #valid #parentheses #leetcode

Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses substring.

Topic(s): String, Dynamic Programming

Problem #:32
Рекомендации по теме
Комментарии
Автор

Thank you very much for making it so easy to understand.

mazaqstanofficial
Автор

The solution that I'm looking for...thanks

madlim
Автор

please add more leetcode problems solution

sankaranarayanankm
Автор

very nice👍..
can you pls do 887 leetcode ...egg drop problem?

ms-lkbw
Автор

why we are traversing from both the end?
is it possible in only one traversal using this concept?

AshutoshKumar