Horje
Anagram solution in c++ Code Example
Anagram solution in c++
class Solution
{
   public:
   //Function is to check whether two strings are anagram of each other or not.
   bool isAnagram(string a, string b){
       
       // Your code here
       sort(a.begin(),a.end());
       sort(b.begin(),b.end());
       if(a==b)
       {
           return true;
       }
       return false;
   }

};




Cpp

Related
online ide c++ Code Example online ide c++ Code Example
codeforces Pangram in c++ Code Example codeforces Pangram in c++ Code Example
Lambda capture as const cpp Code Example Lambda capture as const cpp Code Example
std::random_device Code Example std::random_device Code Example
1822. Sign of the Product of an Array leetcode in c++ Code Example 1822. Sign of the Product of an Array leetcode in c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10