How can you check if a given sequence of brackets is balanced using a stack?
A. Push each opening bracket and pop on closing brackets
B. Directly compare brackets without stack
C. Use a queue to process brackets
D. Track the balance using a counter
Answer: Option A
Join The Discussion