Skip to content

Latest commit

 

History

History
34 lines (18 loc) · 1.65 KB

NOTES_2018.md

File metadata and controls

34 lines (18 loc) · 1.65 KB

Notes for solving 2018

Day 01: Chronal Calibration

Again, first day is nothing to write home about: just iterate and sum, nothing too complicated.

Day 02: Inventory Management System

Oh look, another of those "loop over EVERY-FUCKING-COMBINATION" exercises...

Day 03: No Matter How You Slice It

Not much we haven't seen last year.

Day 04: Repose Record

There's something about this "find the most used record" type of exercises that I dislike.

Day 05: Alchemical Reduction

As a programmer, your MUST have used, at least once, the command man ascii, if only to find the integer value of a specific number. But were you to look specifically at the hexadecimal table, something may have caught your attention: uppercase letters, and their equivalent lowercase values, are all separated by 32 characters. Now, isn't that a nice number that plays VERY WELL with bit masks? Here's a little playground to help you!

Day 06: Chronal Coordinates

At first, I felt like expanding each area one by one, until I realised that just calculating distances was just easier.

Day 07: The Sum of Its Parts

I hate everything about time-advancing series calculations...

Day 08: Memory Maneuver

Trees are one of those things I never know how to handle properly, traverse, balance, etc... I just love good old arrays.

In that case however, despite my first five minutes being puzzled by the absence of a "length" value for each node of the tree, I quickly found out a solution and actually liked the exercise.