From fce897df104f04d18c1def298a8ce2273992ae00 Mon Sep 17 00:00:00 2001 From: chayan das <110921638+Chayandas07@users.noreply.github.com> Date: Tue, 5 Nov 2024 23:56:01 +0530 Subject: [PATCH] Create 2914. Minimum Number of Changes to Make Binary String Beautiful --- ...m Number of Changes to Make Binary String Beautiful | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 2914. Minimum Number of Changes to Make Binary String Beautiful diff --git a/2914. Minimum Number of Changes to Make Binary String Beautiful b/2914. Minimum Number of Changes to Make Binary String Beautiful new file mode 100644 index 0000000..166126b --- /dev/null +++ b/2914. Minimum Number of Changes to Make Binary String Beautiful @@ -0,0 +1,10 @@ +class Solution { +public: + int minChanges(string s) { + int cnt=0; + for(int i=0;i