Tripadvisor interview question

Balanced Brackets Problem in Python

Interview Answer

Anonymous

3 Feb 2026

I used a stack structure to tackle this question. Apparently as per my feedback, I didn't "fully" solve it by myself although I think I have.