Question d’entretien chez Cambium Assessment

Write a function to check if a given string has balanced parentheses.

Réponse à la question d'entretien

Utilisateur anonyme

17 mars 2023

I used a stack and handled opening and closing parentheses (3 types) separately and checked if the stack was empty at the end.