General Discussions

Discuss any topics that are not product-specific here.

Advent of Code 2020 - BaseA Style (Day 18)

Jean-Balteryx
16 - Nebula
16 - Nebula

Discussion thread for day 18 of the Advent of Code : https://adventofcode.com/2020/day/18

11 REPLIES 11
danilang
19 - Altair
19 - Altair

This may be one of the rare cases where Part 2 took me less time to finish than part 1!!  Both parts run in 0.5 seconds

 

Spoiler
MacroMacroMainMain
It was a relatively trivial matter to modify the Part 1 macro to calculate the + before the X.  Just added logic to iterate the additions then the multiplication before changing the indent level.  
Steph_Maddrell
8 - Asteroid

Part 1:

Spoiler
stephM_0-1608396524862.png

Part 1 Macro:

Spoiler
stephM_1-1608396563935.png

Part 2:

Spoiler
stephM_2-1608396614556.png

Part 2 Macro:

Spoiler
stephM_3-1608396680231.png
Labels