Skip to content

Instantly share code, notes, and snippets.

@bugbrekr
bugbrekr / word_unjumbler_v2.py
Last active July 23, 2024 15:30
A much more simpler and efficient word unjumbler
"""
A very stupid Word Unjumbler. V2.
Author: BugBrekr
Date: 23/07/2024
Requires words_alpha.txt.
Available at: https://github.com/dwyl/english-words/blob/master/words_alpha.txt
"""
import time
@bugbrekr
bugbrekr / jumbled_word_solver.py
Last active July 23, 2024 15:00
Simple and inefficient word unjumbler!
import sys
import time
import webbrowser
WORDS_FILE = 'words_alpha.txt'
num_words = sum(1 for line in open(WORDS_FILE))
def permutation(lst):
if len(lst) == 0:
return []
if len(lst) == 1:
return [lst]