You are given two integer arrays nums1 and nums2, where nums2 is an anagram of nums1. Both arrays have the same length.
An anagram mapping is an array mapping of indices such that nums1[i] == nums2[mapping[i]] for each index i.
Return an index mapping array mapping. If multiple valid mappings exist, return any of them.
Constraints:
nums1.length
nums2.length nums1.length
nums1[i], nums2[i]
nums2 is an anagram of nums1.
You are given two integer arrays nums1 and nums2, where nums2 is an anagram of nums1. Both arrays have the same length.
An anagram mapping is an array mapping of indices such that nums1[i] == nums2[mapping[i]] for each index i.
Return an index mapping array mapping. If multiple valid mappings exist, return any of them.
Constraints:
nums1.length
nums2.length nums1.length
nums1[i], nums2[i]
nums2 is an anagram of nums1.