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.
defmakingAnagrams(s1,s2):# Write your code heretemp={}foriins1:ifiintemp:temp[i]+=1else:temp[i]=1c=0foriins2:iftemp.get(i):temp[i]-=1else:c+=1foriintemp.values():c+=ireturnc
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Making Anagrams
You are viewing a single comment's thread. Return to all comments →