GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — leetcode/python/760_Find_Anagram_Mappings.py at master · qiyuangong/leetcode Expand file tree/ Copy path760_Find_Anagram_Mappings.pyMore file actions 14 lines (14 loc) · 344 Bytes / Copy path760_Find_Anagram_Mappings.pyFile metadata and controls14 lines (14 loc) · 344 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 class Solution(object): def anagramMappings(self, A, B): """ :type A: List[int] :type B: List[int] :rtype: List[int] """ val_index = {} ans = [] for i, n in enumerate(B): val_index[n] = i for n in A: ans.append(val_index[n]) return ans |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |