DEV Community

Discussion on: Advent of Code 2020 Solution Megathread - Day 10: Adapter Array

Collapse
 
thibpat profile image
Thibaut Patel

My JavaScript walkthrough (today was tough but recursion with memoization did the trick!):

Collapse
 
colinvellabetsson profile image
Colin Vella

Thanks for the memoizatino tip! Without caching intermediary results my algorithm was simply stuck. Once I started caching, the computation was almost instantaneous!

Collapse
 
kudostoy0u profile image
Kudos Beluga • Edited

Part 2 stumped me, and this really helped!