We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Here is simple C# code, that does the trick. Here I am deleting characters thats are found from both the strings (1 character each). We will be left with characters that are now found in both.
public static int makeAnagram(string a, string b)
{
string sS1 = "";
string sS2 = "";
Strings: Making Anagrams
You are viewing a single comment's thread. Return to all comments →
Here is simple C# code, that does the trick. Here I am deleting characters thats are found from both the strings (1 character each). We will be left with characters that are now found in both.
public static int makeAnagram(string a, string b) { string sS1 = ""; string sS2 = "";