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 ₹2,000 ₹1,000 · Beta offer
Item 72 of 94 · updated 2026-10-12