From 6f959242ffbaee028759b1924565590d07f69b91 Mon Sep 17 00:00:00 2001 From: priyagupta20044 <121642923+priyagupta20044@users.noreply.github.com> Date: Sat, 27 Jan 2024 13:39:26 +0530 Subject: [PATCH] Create priyagupta20044--c.md --- .../priyagupta20044--c.md | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 Day-17/Q1:Determine if two strings are close/priyagupta20044--c.md diff --git a/Day-17/Q1:Determine if two strings are close/priyagupta20044--c.md b/Day-17/Q1:Determine if two strings are close/priyagupta20044--c.md new file mode 100644 index 00000000..2e02aa1b --- /dev/null +++ b/Day-17/Q1:Determine if two strings are close/priyagupta20044--c.md @@ -0,0 +1,30 @@ +class Solution { +public: + bool closeStrings(string word1, string word2) { + if (word1.length()!=word2.length()) return false; + mapm1; + mapm2; + mapm3; + mapm4; + + for (int i=0;i