[Solved] Python - n(logn) since i used sorting


#1
class Solution:
    # @param A : list of integers
    # @param B : list of integers
    # @return an integer
    def mice(self, A, B):
        res = []
        A.sort()
        B.sort()
        
        maxx = 0
        
        for i in range(len(A)) :
            maxx = max(maxx, abs(A[i]-B[i]))
        
        return maxx
>