Metaseniornov. de 2025
return the longest valid parentheses substring, after asking clarifying questions the interviewer asked to return either the first longest valid substring or last but it should be deterministic.
Find the length of the longest well-formed (balanced) parentheses substring in a string of '(' and ')', handling nested and adjacent valid segments; this typically requires tracking matching positions or lengths (e.g., via a stack, dynamic programming, or a two-pass counter scan) to do efficiently.
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
return the longest valid parentheses substring, after asking clarifying questions the interviewer asked to return either the first longest valid substring or last but it should be deterministic.
Nenhum anexo público associado a esta pergunta.
No app você encontra perguntas parecidas, compara empresas e aprofunda essa busca com mais filtros.