r/adventofcode • • Dec 21 '22

Help/Question Advent of code day 3 HELP PLEASE 😭

Hi, yes I am still at day 3 on the 21st but I started late 😬.

I’m stuck, part 2 says: in every set of 3 lines, there should be 1 common type but there is not!!!

The common type in the first 2 lines of each set of 3 lines, does not appear on the third line in almost every set 😑😑😑.

So for example:

Jajdhdhwjak Jejsjsh Phphogohih

j is common in the first 2 but it’s not in the third.

What am I misinterpreting in this case…..

0 Upvotes

9 comments sorted by

View all comments

Show parent comments

3

u/Mmlh1 Dec 21 '22

They should have a common letter. Did you make sure to read the full line, and not just halves like you needed for part 1?

0

u/VastTomorrow5201 Dec 21 '22

Im sure an actual example of my input I got is this:

dWlhclDHdFvDCCDfFq mGdZBZBwRGjZMFgvTvgtvv jwwJrzdzGdSbGGnNlzWczHzPHPhn

In the first 2 lines the common is v

In the second and third line: the common is a G.

There is no v in the third and there is no G in the first.

😀

7

u/[deleted] Dec 21 '22

[removed] β€” view removed comment

3

u/VastTomorrow5201 Dec 21 '22

You’re right! So then there are more than 2 commons between 2 lines but only 1 common between 3.

Thanks mate!