06.18 · Problem
Balance the Brackets
This problem is part of solulu Pro
A string contains only ( and ). In one step you may insert a bracket anywhere. What is the minimum number of insertions to make the string a balanced bracket sequence?
Lifetime ₹1,999 ₹999 · Launch offer
Item 72 of 94 · updated 2026-10-12