Quiz on String for DSA: Question 8

Last Updated :
Discuss
Comments

Which of the following is the correct condition for two strings to be anagrams?

Both strings must have the same length and contain the same characters in any order.

Both strings must have the same length and contain only vowels.

Both strings must have the same length and contain different characters.

Both strings must have the same length and contain characters in the same order.

Tags:
Share your thoughts in the comments