You are viewing a single comment's thread. Return to all comments →
def beautifulStrings(s): perms=permutations(s,2) return len(set(perms))
How Can I pass all the cases ? its just passing single test case... can Anyone give the idea or hints please??
Seems like cookies are disabled on this browser, please enable them to open this website
Beautiful Strings
You are viewing a single comment's thread. Return to all comments →
def beautifulStrings(s): perms=permutations(s,2) return len(set(perms))
How Can I pass all the cases ? its just passing single test case... can Anyone give the idea or hints please??