# Length of the longest valid parenthesis substring Puzzle from the [rendezvous with cassidoo](https://buttondown.email/cassidoo/archive/friends-and-good-manners-will-carry-you-where/) 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