โ† ServiceNow questions
CodingReported in a candidate post, May 2025

Minimum swaps to make a string balanced

Filed under ServiceNow

Given a string s of open '(' and close ')' brackets, find the minimum number of swaps needed to make the string balanced.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related ServiceNow questions

Collected from public candidate posts and coding forums. Updated Nov 2026.