Skip to content
This repository has been archived by the owner on Dec 31, 2021. It is now read-only.

Latest commit

 

History

History

day5

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

NullTek Documentation --- Day 5: Hydrothermal Venture ---

This package contains the source and data for day 5 of the challenge.

  • Status: Complete
  • Difficulty Rating: 2 / 5

Post-Task Thoughts

Fun task, basically just computation of Cartesian points. Because we are iterating through multiple vents trying to look for matching points, storing points in a dictionary made a lot of sense as you can utilise the efficiency of hashed lookups. It was easy to design for this task as it was clear in part 1 what the scope of the second part was going to be (diagonal lines), so I think everyone was able to prepare themselves for handling this case.

One library I found particularly helpful for this task that I have previously not used extensively, was the operator lib. Having quick and easy access to variable operator functions can be a very helpful in reducing duplication of large calculations. Definitely adding this to the tool-belt for the future.