Skip to content

Instantly share code, notes, and snippets.

View adolgert's full-sized avatar
💭
Excited about B-splines

Drew Dolgert adolgert

💭
Excited about B-splines
View GitHub Profile
@adolgert
adolgert / etet.py
Created January 5, 2017 19:46
Solve 8833 puzzle stochastically
"""
Find an expression using the numbers 8, 8, 3, 3 each exactly once, without
replacement, combined with any number of the operators in +, -, *, /
such that the expression evaluates to 24.
"""
from fractions import Fraction
import os
import random
def add(a, b):