Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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)
Comment

PREVIOUS NEXT
Code Example
Python :: python cv2 how to update image 
Python :: replace all occurrences of a value to nan in pandas 
Python :: how should i learn python 
Python :: counter python time complexity 
Python :: lenet 5 keras 
Python :: how to print python exception message 
Python :: django add queury parameters to reverse 
Python :: how to run python in the browser 
Python :: python list remove duplicates keep order 
Python :: python ON DUPLICATE KEY UPDATE 
Python :: numpy maximum 
Python :: how to check if how much time is your code taking to run in python 
Python :: How to change the title of a console app in python 
Python :: python class example 
Python :: dataframe column condition in list 
Python :: parallel iteration python 
Python :: Python NumPy Shape function syntax 
Python :: normalize a group in countplot 
Python :: binary search tree in python 
Python :: how to print text in python 
Python :: print python reverse list 
Python :: how to add axis labels to a plotly barchart 
Python :: qr scanner 
Python :: argparse type 
Python :: python index for all matches 
Python :: Encrypting a message in Python 
Python :: python how to create a function 
Python :: Implement a binary search of a sorted array of integers Using pseudo-code. 
Python :: python append value to column 
Python :: mean squared error in machine learning formula 
ADD CONTENT
Topic
Content
Source link
Name
8+1 =