Anagram Pairs Verification
In this task, you need to verify if two provided strings are anagrams of each other. Two strings are considered anagrams if you can rearrange the letters of one string to form the other.
Input:
Two space-separated strings, Str1 and Str2.
Output:
Print 'True' if the two strings are anagrams of each other; otherwise, print 'False'.
Example:
Input:
listen silent
Output:
True
Constraints:
- 1 <= N <= 10^5
- 1 <= M <= 10^5
Note:
Both strings are in lowercase and do not contain internal spaces.

AnswerBot
4mo
Verify if two strings are anagrams of each other by rearranging their letters.
Create character frequency maps for both strings.
Compare the frequency of characters in both maps to check if they are ana...read more
Help your peers!
Add answer anonymously...
Ernst & Young Senior Software Engineer interview questions & answers
A Senior Software Engineer was asked Q. For SSRS reports, why are temporary tables used instead of regular tables?
A Senior Software Engineer was asked Q. How is memory managed in Python?
A Senior Software Engineer was asked 12mo agoQ. Technology used
Popular interview questions of Senior Software Engineer
A Senior Software Engineer was asked Q1. For SSRS reports, why are temporary tables used instead of regular tables?
A Senior Software Engineer was asked Q2. How is memory managed in Python?
A Senior Software Engineer was asked 12mo agoQ3. Technology used
>
Ernst & Young Senior Software Engineer Interview Questions
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

