LC: 760. Find Anagram Mappings - spiralgo/algorithms GitHub Wiki
760. Find Anagram Mappings:
The Essence:
Both arrays have the same elements but in a different order. We are asked for "indices" of the second array but by the order of the elements in the first array. It means, we need to store the indices of the second array and traverse them by the order of the elements in the first array.
Details:
- You can use a map kind of data structure. Use the character as a key and the index as a value.