In this repo, I will solve Advent-Of-Code problems from 2016 in JavaScript. If possible I will try to come up with a visualization of the solution. These visualizations might be much slower than the original solution (because of animation). Not every Problem lends itself to a nice visual representation.
- problem: Manhattan Distance
- insight: reading input in JS
- visuals: breadcrumbs and distance
- problem: moving through a 2D-Grid
- insight: setting up boundaries for non rectangle shapes
- visuals: tried, but was boring
- problem: check valid triangles
- insight: constructing the triangles was more fun
- visuals: visual proof of possible triangles
- problem: checksums on strings and ceasar cypher
- insight: sorting functions!
- visuals: none
- problem: MD5 checksums
- insight: bruteforce, JavaScript slow
- visuals: none
- problem: most / least frequent letter in String
- insight: functions as arguments
- visuals: none
- problem: finding repeated letters with overlap
- insight: regex and resetting match-index
- visuals: none
- problem: manipulate 2D-Array
- insight: solution is the visualization
- visuals: pixel display
- problem: string manipulation
- insight: don't decompress string, keep track of factors instead
- problem: directed graph and scrambled input
- insight: it's basically bubble sort
- visuals: animated graph showing paths of values
- problem: graph traversal, shortest path
- insight: aggressive pruning is key, solution might not be generally correct
- visuals: WIP
- problem: parse asembly code
- insight: simple is good enough
- visuals: none
- problem: maze navigation, shortest path
- insight: generative function instead of knowledge of whole maze
- visuals: pathfinder
- problem: hashing and salting
- insight: precomputing is key
- visuals: none
- problem: predetermine a certain state
- insight: analytic answer might be possible, but brut force works fast enough
- visuals: the last few seconds, before the solution
- problem: recursive generation
- insight: analytic answer might be possible, but brut force works fast enough
- visuals: none
- problem: navigating a changing maze
- insight: BFS and DFS, no circles possible
- visuals: WIP
- problem: enforce simple rules
- insight: again, brute force works
- visuals: in console
- problem: determine final state, not trivial
- insight: brute force not working, but Josephus-Problem (thank you, Numberphile!)
- visuals: none