Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

anagram

// for 2 strings s1 and s2 to be anagrams
// both conditions should be True
// 1 their length is same or 
len(s1)==len(s2)
// 2 rearranging chars alphabetically make them equal or 
sorted(s1)==sorted(s2)
Source by www.javatpoint.com #
 
PREVIOUS NEXT
Tagged: #anagram
ADD COMMENT
Topic
Name
9+9 =