#include #include #include #include using namespace std ; //Find the number of groups of anagrams in the vector of strings //You can sort a string by using the following code // sort( str1.begin() , str1.end() ) int getGroupNumber( vector& v1 ) { map< string, int> map1 ; int result = 0 ; return result ; } int main () { vector v1 = { "cinema" , "iceman" , "the" } ; cout << getGroupNumber( v1 ) << endl ; vector v2 = { "cinema" , "iceman" , "the" , "nat", "tan" } ; cout << getGroupNumber( v2 ) << endl ; return 0; }