From d47f6b611f44de14710c7119551b4f0be1414d42 Mon Sep 17 00:00:00 2001 From: chayan das <110921638+Chayandas07@users.noreply.github.com> Date: Tue, 8 Oct 2024 15:19:15 +0530 Subject: [PATCH] Create 1963. Minimum Number of Swaps to Make the String Balanced --- ...umber of Swaps to Make the String Balanced | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 1963. Minimum Number of Swaps to Make the String Balanced diff --git a/1963. Minimum Number of Swaps to Make the String Balanced b/1963. Minimum Number of Swaps to Make the String Balanced new file mode 100644 index 0000000..9a9d4be --- /dev/null +++ b/1963. Minimum Number of Swaps to Make the String Balanced @@ -0,0 +1,19 @@ +class Solution { +public: + int minSwaps(string s) { + int maxiClose=0; + int maxi=0; + for(int i=0;i