Advent of Code 2020, Day 9, Part One - Solved with SQL

preview_player
Показать описание
I code up and walkthrough a solution to Part One of Day 9 of Advent of Code 2020 using SQL in PostgreSQL. It was fun to think about this problem in terms of slices of data that need to be joined and filtered. The solution involves some more intermediate PostgreSQL features like a HAVING clause, array_agg, and array comparison.

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

what text editors supports this 'visual block selection' you were using to surround the numbers with info? only vi? how is it done?

LindenMikus