
Asked in Practo and 8 others
Given two strings, determine whether they are anagrams of each other. Write clean and runnable Java code covering all possible test cases.

AnswerBot
3mo
A function to determine if two strings are anagrams by comparing character counts.
Anagrams are words formed by rearranging the letters of another, e.g., 'listen' and 'silent'.
Convert both strings to l...read more

PrepInsta
3y
#include int main() { //Initializing variables. char str[100]; int i; int freq[256] = {0}; //Accepting inputs. printf("Enter the string: "); gets(str); //Calculating frequency of each character. for(i...read more
Help your peers!
Add answer anonymously...
Interview Questions from Popular Companies

3.7
• 8.7k Interviews

4.0
• 5.4k Interviews

3.5
• 4.2k Interviews

3.6
• 8k Interviews

3.7
• 6k Interviews

3.7
• 6.2k Interviews

3.5
• 4.2k Interviews

3.7
• 5.1k Interviews
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

