Skip to content

Instantly share code, notes, and snippets.

@3-24
Last active November 19, 2018 11:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3-24/4dac7469c2d279b25e696affcbe007ab to your computer and use it in GitHub Desktop.
Save 3-24/4dac7469c2d279b25e696affcbe007ab to your computer and use it in GitHub Desktop.
This is variation of Feynnman's problem solving algorithm written in Python. This code requires coffee because I love it. Have FUN!
##### Feynnman Algorithm #####
# 1. Write down the problem.
# 2. Think real hard.
# 3. Write down the solution.
##############################
class Paper(object):
def __init__(self):
self.s = ""
def write_down(self,string):
self.s += string
def solve_problem(problem,coffee):
paper = Paper()
paper.write_down(problem)
solution = think_REAL_hard(paper,coffee)
paper.write_down(solution)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment