USAA Interview Question

Write a psuedocode program to check if an string of brackets chars is balanced.

Interview Answer

Anonymous

Feb 28, 2022

Make a stack, loop through the string and push if open bracket, pop if close bracket and the stack is not already empty, in which the string would be unbalanced. if the loop finishes and the stack is empty, the string is balanced.