434 B
434 B
Length of the longest valid parenthesis substring
Puzzle from the rendezvous with cassidoo newsletter from August 14th, 2022.
Given a string s consisting of various parenthesis ( and ), find the length of the longest valid parenthesis substring.
Solution posted at https://gist.github.com/zoeisnowooze/5347717cfd57d564518ca41e6eeff83b