Advent of Code 2020 Day 10 | Dynamic Programming Solution

preview_player
Показать описание
This is a walkthrough of Advent of Code 2020 Day 10: Adapter Array in JavaScript.

Рекомендации по теме
Комментарии
Автор

I feel like two weeks ago i'd have struggled with part two, but I finished up your codecamp video on dynamic programing and memoization and tabulation came to mind here and saved the day :)

Saw this Ruby solution on reddit for part two as well.

c = [nil, nil, nil, 1]
a.each { |i| c[i+3] = c[i..i+2].compact.sum }
puts "Part 2: #{c.last}"

drumminah
Автор

Awesome explanation thank you so much Alvin

y.t.recepson
Автор

Great explaination! Thank you for your effort!

dengoutman
Автор

Is this channel still active? No more new video for a year.

angtranhai
Автор

Hello, do you any video to setup java script. currently doing this in python with VS Code as an editor.

afiqyahya