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.
- Prepare
- Algorithms
- Strings
- Anagram
- Discussions
Anagram
Anagram
Sort by
recency
|
971 Discussions
|
Please Login in order to post a comment
c++ answer
include
using namespace std;
string ltrim(const string &); string rtrim(const string &);
/* * Complete the 'anagram' function below. * * The function is expected to return an INTEGER. * The function accepts STRING s as parameter. */
int anagram(string s) { int n = s.length();
}
int main() { ofstream fout(getenv("OUTPUT_PATH"));
}
string ltrim(const string &str) { string s(str);
}
string rtrim(const string &str) { string s(str);
}
My Intuition based easy C++ solution:
My c++ solution using map, here is the explanation : https://youtu.be/0-xHzWDVAME
My Java solution:
Here is my Python solution!