Skip to content

Instantly share code, notes, and snippets.

@kbrafford
Last active December 11, 2017 18:06
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 kbrafford/e6d8a456159058f17e39c790fc8dc5a1 to your computer and use it in GitHub Desktop.
Save kbrafford/e6d8a456159058f17e39c790fc8dc5a1 to your computer and use it in GitHub Desktop.
Day 6
======
Someone did a cool version using the `click` package. click is cool...learn it. better than argparse
Day 7
======
captncraig
----------
* just xlate to graphviz and you can also do it in the browser:
- https://pastebin.com/raw/1xQeA1AH
- http://www.webgraphviz.com/
sciyoshi
--------
* `networkx` package for graphs
- https://www.reddit.com/r/adventofcode/comments/7i44pg/2017_day_7_solutions/dqw0f0c/?st=jaxdmw2k&sh=c8eec097
fogle
-----
* string `translate` method
* parsing using tuple unpacking and list slicing:
- (name, weight), children = tokens[:2], tokens[2:]
Day 8
=====
* Don't be afraid to use `eval`?
* Check out and remember about `defaultdict`
Day 11
======
* Check out hex grid algorithms: https://www.redblobgames.com/grids/hexagons/
* Multiprocessing pool
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment