Atlassian|Python Data Engineer Interview preparation|Find Last Used Indices in Python Arrays

Опубликовано: 04 Май 2026
на канале: sanadatadive
79
2

Python function designed to trace the last usage of passwords based on anagrams. Our code tackles this by first sorting each password in the previously used list, then mapping these sorted passwords to their indices. When querying new passwords, we sort each one and check if its sorted version is in our map. If it is, we know the last time that password or its anagram was used, and we record the index.