Skip to content

Instantly share code, notes, and snippets.

@TBoshoven
TBoshoven / words.py
Last active August 5, 2022 05:48
Can you find: five five-letter words with twenty-five unique letters?
"""
Original video: https://www.youtube.com/watch?v=_-AfhLQfb6w
Quick and dirty brute force approach with aggressive pruning.
This is a slightly faster script than in the video (8:55 on my machine; 5:45 when using Pypy).
"""
import string
with open('words_alpha.txt') as f: