Skip to content

760 Find Anagram Mappings

760. Find Anagram Mappings

题目: https://leetcode.com/problems/find-anagram-mappings/

难度:

Easy

class Solution(object):
    def anagramMappings(self, A, B):
        """
        :type A: List[int]
        :type B: List[int]
        :rtype: List[int]
        """
        if not A:
            return []
        res = []
        for i in A:
            res.append(B.index(i))
        return res

我们一直在努力

apachecn/AiLearning

【布客】中文翻译组