← All problemsSign in

Matching Brackets

Fluffy the Squirrel has a bracket sequence. A bracket sequence is just a string of characters where each character is either '(', ')', '[' or ']'. Now, Fluffy the Squirrel thinks that a bracket sequence is called correct if : 1. It is equal to the string [] 2. It is equal to the string () 3. It can be seperated into 2 parts, S and T, such that S and T are both correct bracket sequences. For exa

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start