Last active
December 11, 2017 18:06
-
-
Save kbrafford/e6d8a456159058f17e39c790fc8dc5a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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