Metamidmar. de 2026
It was part of other questions in the interview, I got only 5 min to resolve it
Check whether a string of parentheses/brackets is valid by ensuring every closing bracket matches the most recent unmatched opening bracket and the types and nesting order are correct. This is typically solved by tracking openings (e.g., with a stack) and verifying matching pairs.
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
It was part of other questions in the interview, I got only 5 min to resolve it
Sem observação adicional neste relato público.
Follow up - what if I add <> as well. How to make it maintainable
Nenhum anexo público associado a esta pergunta.
No app você encontra perguntas parecidas, compara empresas e aprofunda essa busca com mais filtros.