Q40
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
AnswerB.
Directly compare brackets without stack
C.
Use a queue to process brackets
D.
Track the balance using a counter
Answer: Option A
Solution
Answer: Option A
No explanation is given for this question Let's Discuss on Board