Advent of Code 2020 - Day 1

preview_player
Показать описание
December is finally here and with that comes the 2020 edition of Advent of Code! Today we tackle the problem for Day 1!

=== Video Markers ===
0:00 Intro
0:41 What Is Advent of Code
3:11 Puzzle Release
4:35 Part 1 Solution
8:15 Solution Explanation
10:47 Part 2 Solution
11:46 Wrap up

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

isn't giving the answers not allowed?

adityavats
Автор

Hello, im new on this thing and i would like to know how to put the values of puzzle input in my file ??

fabjokoci
Автор

You’re solution is indeed valid, but it’s O(n^2) time. We can reduce it to O(n). By sorting the list using quick sort, looking though the list, subtracting 2020 and find the other number in that list using binary search. If there is a match we multiply the two values

root