Skip to content

Latest commit

 

History

History

261-parensSubstring

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

parensSubstring

Interview question of the issue #261 of rendezvous with cassidoo.

The Question

Given a string s consisting of various parenthesis ( and ), find the length of the longest valid parenthesis substring.

Example:

> parensSubstring('(()(')
> 2

> parensSubstring(')()(()))')
> 6

Installing & Running

Just pnpm i to install all dependencies and then pnpm t to run the tests!