Stack
CodeChefOpen on judge ↗
Problem Description Given a string expression, check if brackets present in the expression are balanced or not. Brackets are balanced if the bracket which opens last, closes first. You need to return true if it is balanced, false otherwise (Solve using given DATA STRUCTURE ONLY) Note: This problem was asked in initial rounds in Facebook Example Sample Input 1: { a + [ b+ (c + d)] + (e + f) }
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start