Answers for "sorted string"

0

sorted string

class Permutations(object):

    def is_permutation(self, str1, str2):
        if str1 is None or str2 is None:
            return False
        return sorted(str1) == sorted(str2)
Posted by: Guest on April-13-2022

Python Answers by Framework

Browse Popular Code Answers by Language