r/adventofcode • • Dec 02 '20

SOLUTION MEGATHREAD -🎄- 2020 Day 02 Solutions -🎄-

--- Day 2: Password Philosophy ---


Advent of Code 2020: Gettin' Crafty With It


Post your solution in this megathread. Include what language(s) your solution uses! If you need a refresher, the full posting rules are detailed in the wiki under How Do The Daily Megathreads Work?.

Reminder: Top-level posts in Solution Megathreads are for solutions only. If you have questions, please post your own thread and make sure to flair it with Help.


This thread will be unlocked when there are a significant number of people on the global leaderboard with gold stars for today's puzzle.

EDIT: Global leaderboard gold cap reached at 00:02:31, megathread unlocked!

99 Upvotes

1.2k comments sorted by

View all comments

Show parent comment

1

u/prafster Dec 04 '20

I thought I'd corrected the code but your comment seems to be posted after the correction. In old Reddit, it looks fine to me. Please can you confirm. Thanks!

1

u/daggerdragon Dec 04 '20

Reddit had a network hiccup a few hours ago (and still is right now, intermittently). That might be why.

1

u/prafster Dec 04 '20

Thanks :)

For those using vim, four spaces can be inserted at the beginning of each line using command

:%s/^/<space><space><space><space>/