arya2004 / leetcode-daily-october-hacktoberfest-2024

Leetcode Daily October Hacktoberfest 2024
MIT License
10 stars 49 forks source link

Implemented Minimum Swaps to Balance Bracket String #55

Closed vineet28sept closed 1 month ago

vineet28sept commented 1 month ago

This pull request introduces a solution to the problem of determining the minimum number of swaps required to balance a string of brackets. The solution efficiently counts unmatched opening and closing brackets and calculates the required swaps based on these counts.

🚀 What does this PR do?

📝 Issue Reference:

Fixes issue: # (Mention the issue number this PR solves)

🔍 Checklist:

Please ensure the following before submitting your PR:

🔧 Solution Details:

🌟 Additional Notes (if any):