Amazing Anagram Finder

95 views 7:05 am 0 Comments August 2, 2023

The Amazing Anagram Finder Here’s the function signature you should use: def find_anagrams(word_list: List[str]) -> List[Tuple[str, str]]: pass example: words = [‘listen’, ‘silent’, ‘enlist’, ‘hello’, ‘world’, ‘act’, ‘cat’, ‘god’, ‘dog’] result = find_anagrams(words) print(result) expected output: [(‘listen’, ‘silent’), (‘enlist’, ‘listen’), (‘act’, ‘cat’), (‘god’, ‘dog’)]

Tags: , , , , , , ,