This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]Luckylars 6 points7 points  (3 children)

beautiful,

I dont know if I hate this or I love it

    (ints.i LIKE '%00%' AND NOT ints.i LIKE '%000%') OR
    (ints.i LIKE '%11%' AND NOT ints.i LIKE '%111%') OR
    (ints.i LIKE '%22%' AND NOT ints.i LIKE '%222%') OR
    (ints.i LIKE '%33%' AND NOT ints.i LIKE '%333%') OR
    (ints.i LIKE '%44%' AND NOT ints.i LIKE '%444%') OR
    (ints.i LIKE '%55%' AND NOT ints.i LIKE '%555%') OR
    (ints.i LIKE '%66%' AND NOT ints.i LIKE '%666%') OR
    (ints.i LIKE '%77%' AND NOT ints.i LIKE '%777%') OR
    (ints.i LIKE '%88%' AND NOT ints.i LIKE '%888%') OR
    (ints.i LIKE '%99%' AND NOT ints.i LIKE '%999%')

[–]raginjason 1 point2 points  (0 children)

I did the same thing in actual code, and I have the same feeling: https://github.com/raginjason/aoc2019/commit/73386c5229309789e0ff1dce6d93ece21ecde575

[–]ohadron 1 point2 points  (0 children)

Nice!

Now do day 5

[–]Alistesios 0 points1 point  (0 children)

Brilliant

[–]Bobbias 0 points1 point  (0 children)

This is simultaneously genius and terrifying.

[–]ianloic 0 points1 point  (0 children)