From 43ed64bc981133caa92392624b383db4829cff37 Mon Sep 17 00:00:00 2001 From: chayan das Date: Mon, 21 Jul 2025 19:47:39 +0530 Subject: [PATCH] Create 1957. Delete Characters to Make Fancy String1 --- 1957. Delete Characters to Make Fancy String1 | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 1957. Delete Characters to Make Fancy String1 diff --git a/1957. Delete Characters to Make Fancy String1 b/1957. Delete Characters to Make Fancy String1 new file mode 100644 index 0000000..33a9dc1 --- /dev/null +++ b/1957. Delete Characters to Make Fancy String1 @@ -0,0 +1,21 @@ +class Solution { +public: + string makeFancyString(string s) { + int n = s.length(); + int count = 1; + string res = ""; + res += s[0]; + + for(int i=1; i