Skip to content

Instantly share code, notes, and snippets.

View berndtj's full-sized avatar

Berndt Jung berndtj

  • VMware
  • Bellingham, WA
View GitHub Profile
@berndtj
berndtj / 16.py
Created December 18, 2022 02:49
AoC 2022 16
from collections import namedtuple
from itertools import combinations
Valve = namedtuple("Valve", ("name", "rate", "destinations"))
valves = {}
shortest_paths = {}
def explore(start: Valve, unvisited, turns=0, rate=0, flow=0, path=None, max_turns=30, paths=None):
if len(unvisited) == 0:
@berndtj
berndtj / dispatch.md
Last active February 14, 2018 08:44
Instructions for using Ubuntu OVA

Keybase proof

I hereby claim:

  • I am berndtj on github.
  • I am berndtj (https://keybase.io/berndtj) on keybase.
  • I have a public key ASCMf8vL28nE4leEOgEnaA8lWVZP2dsbqP9T_2I5xjdFDQo

To claim this, I am signing this object: