advent_of_ruby 0.3.1 → 0.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/arb +1 -1
- data/data/solutions/reddit/ruby/2015/02.yml +5 -5
- data/data/solutions/reddit/ruby/2015/03.yml +6 -6
- data/data/solutions/reddit/ruby/2015/04.yml +7 -7
- data/data/solutions/reddit/ruby/2015/05.yml +6 -6
- data/data/solutions/reddit/ruby/2015/06.yml +14 -14
- data/data/solutions/reddit/ruby/2015/07.yml +15 -15
- data/data/solutions/reddit/ruby/2015/08.yml +6 -6
- data/data/solutions/reddit/ruby/2015/09.yml +11 -11
- data/data/solutions/reddit/ruby/2015/10.yml +18 -18
- data/data/solutions/reddit/ruby/2015/11.yml +19 -19
- data/data/solutions/reddit/ruby/2015/12.yml +10 -10
- data/data/solutions/reddit/ruby/2015/13.yml +9 -9
- data/data/solutions/reddit/ruby/2015/14.yml +11 -11
- data/data/solutions/reddit/ruby/2015/15.yml +9 -9
- data/data/solutions/reddit/ruby/2015/16.yml +7 -7
- data/data/solutions/reddit/ruby/2015/17.yml +10 -10
- data/data/solutions/reddit/ruby/2015/18.yml +4 -4
- data/data/solutions/reddit/ruby/2015/19.yml +1 -1
- data/data/solutions/reddit/ruby/2015/20.yml +2 -2
- data/data/solutions/reddit/ruby/2015/21.yml +4 -4
- data/data/solutions/reddit/ruby/2015/22.yml +5 -5
- data/data/solutions/reddit/ruby/2015/23.yml +3 -3
- data/data/solutions/reddit/ruby/2015/24.yml +11 -11
- data/data/solutions/reddit/ruby/2015/25.yml +5 -5
- data/data/solutions/reddit/ruby/2016/01.yml +5 -5
- data/data/solutions/reddit/ruby/2016/02.yml +3 -3
- data/data/solutions/reddit/ruby/2016/03.yml +1 -1
- data/data/solutions/reddit/ruby/2016/04.yml +4 -4
- data/data/solutions/reddit/ruby/2016/05.yml +3 -3
- data/data/solutions/reddit/ruby/2016/06.yml +4 -4
- data/data/solutions/reddit/ruby/2016/07.yml +3 -3
- data/data/solutions/reddit/ruby/2016/08.yml +6 -6
- data/data/solutions/reddit/ruby/2016/09.yml +1 -1
- data/data/solutions/reddit/ruby/2016/10.yml +3 -3
- data/data/solutions/reddit/ruby/2016/11.yml +1 -1
- data/data/solutions/reddit/ruby/2016/12.yml +3 -3
- data/data/solutions/reddit/ruby/2016/14.yml +4 -4
- data/data/solutions/reddit/ruby/2016/15.yml +11 -11
- data/data/solutions/reddit/ruby/2016/16.yml +1 -1
- data/data/solutions/reddit/ruby/2016/17.yml +3 -3
- data/data/solutions/reddit/ruby/2016/18.yml +3 -3
- data/data/solutions/reddit/ruby/2016/20.yml +2 -2
- data/data/solutions/reddit/ruby/2016/21.yml +7 -7
- data/data/solutions/reddit/ruby/2016/22.yml +10 -10
- data/data/solutions/reddit/ruby/2017/01.yml +7 -7
- data/data/solutions/reddit/ruby/2017/02.yml +15 -15
- data/data/solutions/reddit/ruby/2017/03.yml +9 -9
- data/data/solutions/reddit/ruby/2017/04.yml +4 -4
- data/data/solutions/reddit/ruby/2017/05.yml +12 -12
- data/data/solutions/reddit/ruby/2017/06.yml +16 -16
- data/data/solutions/reddit/ruby/2017/07.yml +5 -5
- data/data/solutions/reddit/ruby/2017/08.yml +18 -18
- data/data/solutions/reddit/ruby/2017/09.yml +7 -7
- data/data/solutions/reddit/ruby/2017/10.yml +9 -9
- data/data/solutions/reddit/ruby/2017/11.yml +1 -1
- data/data/solutions/reddit/ruby/2017/12.yml +6 -6
- data/data/solutions/reddit/ruby/2017/13.yml +6 -6
- data/data/solutions/reddit/ruby/2017/14.yml +1 -1
- data/data/solutions/reddit/ruby/2017/15.yml +3 -3
- data/data/solutions/reddit/ruby/2017/16.yml +5 -5
- data/data/solutions/reddit/ruby/2017/17.yml +6 -6
- data/data/solutions/reddit/ruby/2017/18.yml +7 -7
- data/data/solutions/reddit/ruby/2017/19.yml +2 -2
- data/data/solutions/reddit/ruby/2017/20.yml +5 -5
- data/data/solutions/reddit/ruby/2017/21.yml +11 -11
- data/data/solutions/reddit/ruby/2017/22.yml +1 -1
- data/data/solutions/reddit/ruby/2017/23.yml +1 -1
- data/data/solutions/reddit/ruby/2017/25.yml +3 -3
- data/data/solutions/reddit/ruby/2018/01.yml +20 -20
- data/data/solutions/reddit/ruby/2018/02.yml +16 -16
- data/data/solutions/reddit/ruby/2018/03.yml +12 -12
- data/data/solutions/reddit/ruby/2018/04.yml +6 -6
- data/data/solutions/reddit/ruby/2018/05.yml +15 -15
- data/data/solutions/reddit/ruby/2018/06.yml +4 -4
- data/data/solutions/reddit/ruby/2018/07.yml +11 -11
- data/data/solutions/reddit/ruby/2018/08.yml +9 -9
- data/data/solutions/reddit/ruby/2018/09.yml +13 -13
- data/data/solutions/reddit/ruby/2018/10.yml +10 -10
- data/data/solutions/reddit/ruby/2018/11.yml +9 -9
- data/data/solutions/reddit/ruby/2018/12.yml +2 -2
- data/data/solutions/reddit/ruby/2018/13.yml +14 -14
- data/data/solutions/reddit/ruby/2018/14.yml +5 -5
- data/data/solutions/reddit/ruby/2018/15.yml +2 -2
- data/data/solutions/reddit/ruby/2018/16.yml +7 -7
- data/data/solutions/reddit/ruby/2018/17.yml +1 -1
- data/data/solutions/reddit/ruby/2018/18.yml +6 -6
- data/data/solutions/reddit/ruby/2018/19.yml +1 -1
- data/data/solutions/reddit/ruby/2018/20.yml +1 -1
- data/data/solutions/reddit/ruby/2018/21.yml +4 -4
- data/data/solutions/reddit/ruby/2018/22.yml +3 -3
- data/data/solutions/reddit/ruby/2018/23.yml +11 -11
- data/data/solutions/reddit/ruby/2018/24.yml +4 -4
- data/data/solutions/reddit/ruby/2018/25.yml +6 -6
- data/data/solutions/reddit/ruby/2019/01.yml +11 -11
- data/data/solutions/reddit/ruby/2019/02.yml +13 -13
- data/data/solutions/reddit/ruby/2019/03.yml +7 -7
- data/data/solutions/reddit/ruby/2019/04.yml +11 -11
- data/data/solutions/reddit/ruby/2019/05.yml +10 -10
- data/data/solutions/reddit/ruby/2019/06.yml +7 -7
- data/data/solutions/reddit/ruby/2019/07.yml +8 -8
- data/data/solutions/reddit/ruby/2019/08.yml +8 -8
- data/data/solutions/reddit/ruby/2019/09.yml +4 -4
- data/data/solutions/reddit/ruby/2019/10.yml +4 -4
- data/data/solutions/reddit/ruby/2019/11.yml +7 -7
- data/data/solutions/reddit/ruby/2019/12.yml +17 -17
- data/data/solutions/reddit/ruby/2019/13.yml +6 -6
- data/data/solutions/reddit/ruby/2019/14.yml +2 -2
- data/data/solutions/reddit/ruby/2019/15.yml +3 -3
- data/data/solutions/reddit/ruby/2019/16.yml +6 -6
- data/data/solutions/reddit/ruby/2019/17.yml +3 -3
- data/data/solutions/reddit/ruby/2019/18.yml +1 -1
- data/data/solutions/reddit/ruby/2019/20.yml +9 -9
- data/data/solutions/reddit/ruby/2019/21.yml +3 -3
- data/data/solutions/reddit/ruby/2019/22.yml +3 -3
- data/data/solutions/reddit/ruby/2019/23.yml +1 -1
- data/data/solutions/reddit/ruby/2019/25.yml +2 -2
- data/data/solutions/reddit/ruby/2020/01.yml +30 -30
- data/data/solutions/reddit/ruby/2020/02.yml +25 -25
- data/data/solutions/reddit/ruby/2020/03.yml +17 -17
- data/data/solutions/reddit/ruby/2020/04.yml +26 -26
- data/data/solutions/reddit/ruby/2020/05.yml +35 -35
- data/data/solutions/reddit/ruby/2020/06.yml +40 -40
- data/data/solutions/reddit/ruby/2020/07.yml +16 -16
- data/data/solutions/reddit/ruby/2020/08.yml +13 -13
- data/data/solutions/reddit/ruby/2020/09.yml +21 -21
- data/data/solutions/reddit/ruby/2020/10.yml +29 -29
- data/data/solutions/reddit/ruby/2020/11.yml +8 -8
- data/data/solutions/reddit/ruby/2020/12.yml +22 -22
- data/data/solutions/reddit/ruby/2020/13.yml +15 -15
- data/data/solutions/reddit/ruby/2020/14.yml +11 -11
- data/data/solutions/reddit/ruby/2020/15.yml +9 -9
- data/data/solutions/reddit/ruby/2020/16.yml +13 -13
- data/data/solutions/reddit/ruby/2020/17.yml +11 -11
- data/data/solutions/reddit/ruby/2020/18.yml +19 -19
- data/data/solutions/reddit/ruby/2020/19.yml +18 -18
- data/data/solutions/reddit/ruby/2020/20.yml +4 -4
- data/data/solutions/reddit/ruby/2020/21.yml +4 -4
- data/data/solutions/reddit/ruby/2020/22.yml +8 -8
- data/data/solutions/reddit/ruby/2020/23.yml +4 -4
- data/data/solutions/reddit/ruby/2020/24.yml +6 -6
- data/data/solutions/reddit/ruby/2020/25.yml +6 -6
- data/data/solutions/reddit/ruby/2021/01.yml +74 -74
- data/data/solutions/reddit/ruby/2021/02.yml +45 -45
- data/data/solutions/reddit/ruby/2021/03.yml +43 -43
- data/data/solutions/reddit/ruby/2021/04.yml +23 -23
- data/data/solutions/reddit/ruby/2021/05.yml +16 -16
- data/data/solutions/reddit/ruby/2021/06.yml +35 -35
- data/data/solutions/reddit/ruby/2021/07.yml +26 -26
- data/data/solutions/reddit/ruby/2021/08.yml +15 -15
- data/data/solutions/reddit/ruby/2021/09.yml +11 -11
- data/data/solutions/reddit/ruby/2021/10.yml +9 -9
- data/data/solutions/reddit/ruby/2021/11.yml +12 -12
- data/data/solutions/reddit/ruby/2021/12.yml +8 -8
- data/data/solutions/reddit/ruby/2021/13.yml +13 -13
- data/data/solutions/reddit/ruby/2021/14.yml +10 -10
- data/data/solutions/reddit/ruby/2021/15.yml +10 -10
- data/data/solutions/reddit/ruby/2021/16.yml +8 -8
- data/data/solutions/reddit/ruby/2021/17.yml +6 -6
- data/data/solutions/reddit/ruby/2021/18.yml +5 -5
- data/data/solutions/reddit/ruby/2021/19.yml +3 -3
- data/data/solutions/reddit/ruby/2021/20.yml +5 -5
- data/data/solutions/reddit/ruby/2021/21.yml +5 -5
- data/data/solutions/reddit/ruby/2021/22.yml +4 -4
- data/data/solutions/reddit/ruby/2021/23.yml +7 -7
- data/data/solutions/reddit/ruby/2021/24.yml +8 -8
- data/data/solutions/reddit/ruby/2021/25.yml +4 -4
- data/data/solutions/reddit/ruby/2022/01.yml +29 -29
- data/data/solutions/reddit/ruby/2022/02.yml +21 -21
- data/data/solutions/reddit/ruby/2022/03.yml +35 -35
- data/data/solutions/reddit/ruby/2022/04.yml +42 -42
- data/data/solutions/reddit/ruby/2022/05.yml +29 -29
- data/data/solutions/reddit/ruby/2022/06.yml +38 -38
- data/data/solutions/reddit/ruby/2022/07.yml +25 -25
- data/data/solutions/reddit/ruby/2022/08.yml +9 -9
- data/data/solutions/reddit/ruby/2022/09.yml +18 -18
- data/data/solutions/reddit/ruby/2022/10.yml +14 -14
- data/data/solutions/reddit/ruby/2022/11.yml +7 -7
- data/data/solutions/reddit/ruby/2022/12.yml +2 -2
- data/data/solutions/reddit/ruby/2022/13.yml +9 -9
- data/data/solutions/reddit/ruby/2022/14.yml +5 -5
- data/data/solutions/reddit/ruby/2022/15.yml +6 -6
- data/data/solutions/reddit/ruby/2022/16.yml +5 -5
- data/data/solutions/reddit/ruby/2022/17.yml +2 -2
- data/data/solutions/reddit/ruby/2022/18.yml +6 -6
- data/data/solutions/reddit/ruby/2022/19.yml +3 -3
- data/data/solutions/reddit/ruby/2022/20.yml +12 -12
- data/data/solutions/reddit/ruby/2022/21.yml +11 -11
- data/data/solutions/reddit/ruby/2022/22.yml +4 -4
- data/data/solutions/reddit/ruby/2022/24.yml +10 -10
- data/data/solutions/reddit/ruby/2022/25.yml +10 -10
- data/data/solutions/reddit/ruby/2023/01.yml +52 -52
- data/data/solutions/reddit/ruby/2023/02.yml +21 -21
- data/data/solutions/reddit/ruby/2023/03.yml +18 -18
- data/data/solutions/reddit/ruby/2023/04.yml +31 -31
- data/data/solutions/reddit/ruby/2023/05.yml +14 -14
- data/data/solutions/reddit/ruby/2023/06.yml +24 -24
- data/data/solutions/reddit/ruby/2023/07.yml +32 -32
- data/data/solutions/reddit/ruby/2023/08.yml +20 -20
- data/data/solutions/reddit/ruby/2023/09.yml +32 -32
- data/data/solutions/reddit/ruby/2023/10.yml +18 -18
- data/data/solutions/reddit/ruby/2023/11.yml +16 -16
- data/data/solutions/reddit/ruby/2023/12.yml +5 -5
- data/data/solutions/reddit/ruby/2023/13.yml +6 -6
- data/data/solutions/reddit/ruby/2023/14.yml +14 -14
- data/data/solutions/reddit/ruby/2023/15.yml +13 -13
- data/data/solutions/reddit/ruby/2023/16.yml +8 -8
- data/data/solutions/reddit/ruby/2023/18.yml +5 -5
- data/data/solutions/reddit/ruby/2023/19.yml +6 -6
- data/data/solutions/reddit/ruby/2023/20.yml +9 -9
- data/data/solutions/reddit/ruby/2023/21.yml +5 -5
- data/data/solutions/reddit/ruby/2023/22.yml +2 -2
- data/data/solutions/reddit/ruby/2023/23.yml +1 -1
- data/data/solutions/reddit/ruby/2023/25.yml +1 -1
- data/data/solutions/reddit/ruby/2024/01.yml +15 -15
- data/data/solutions/reddit/ruby/2024/02.yml +17 -17
- data/data/solutions/reddit/ruby/2024/03.yml +43 -43
- data/data/solutions/reddit/ruby/2024/04.yml +18 -18
- data/data/solutions/reddit/ruby/2024/05.yml +29 -29
- data/data/solutions/reddit/ruby/2024/06.yml +19 -19
- data/data/solutions/reddit/ruby/2024/07.yml +26 -26
- data/data/solutions/reddit/ruby/2024/08.yml +15 -15
- data/data/solutions/reddit/ruby/2024/09.yml +5 -5
- data/data/solutions/reddit/ruby/2024/10.yml +9 -9
- data/data/solutions/reddit/ruby/2024/11.yml +15 -15
- data/data/solutions/reddit/ruby/2024/12.yml +9 -9
- data/data/solutions/reddit/ruby/2024/13.yml +10 -10
- data/data/solutions/reddit/ruby/2024/14.yml +6 -6
- data/data/solutions/reddit/ruby/2024/15.yml +5 -5
- data/data/solutions/reddit/ruby/2024/16.yml +4 -4
- data/data/solutions/reddit/ruby/2024/17.yml +11 -11
- data/data/solutions/reddit/ruby/2024/18.yml +9 -9
- data/data/solutions/reddit/ruby/2024/19.yml +16 -16
- data/data/solutions/reddit/ruby/2024/20.yml +8 -8
- data/data/solutions/reddit/ruby/2024/21.yml +3 -3
- data/data/solutions/reddit/ruby/2024/22.yml +8 -8
- data/data/solutions/reddit/ruby/2024/23.yml +13 -13
- data/data/solutions/reddit/ruby/2024/24.yml +7 -7
- data/data/solutions/reddit/ruby/2024/25.yml +14 -14
- data/lib/arb/api/aoc.rb +2 -2
- data/lib/arb/cli/run.rb +2 -3
- data/lib/arb/version.rb +1 -1
- data/lib/download_solutions/api/reddit/get_serial_comments.rb +1 -1
- metadata +2 -2
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
- :author: yourparadigm
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m0zmy7o
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m0zmy7o
|
4
4
|
:body: |-
|
5
5
|
767/751
|
6
6
|
|
@@ -9,11 +9,11 @@
|
|
9
9
|
[Github](https://github.com/phene/advent-of-code/blob/main/2024/08/8.rb)
|
10
10
|
:replies:
|
11
11
|
- :author: FCBStar-of-the-South
|
12
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m0zs1g0
|
12
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m0zs1g0
|
13
13
|
:body: Ah this is a nice implementation. I should've thought about passing the range of search as a parameter instead of just duplicating my part 1 code with some extra logic haha
|
14
14
|
:replies: []
|
15
15
|
- :author: NullT3rminated
|
16
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m0zn5lg
|
16
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m0zn5lg
|
17
17
|
:body: |-
|
18
18
|
1460/1044
|
19
19
|
|
@@ -22,15 +22,15 @@
|
|
22
22
|
perhaps the worst code I've ever written. But it works.
|
23
23
|
:replies:
|
24
24
|
- :author: yourparadigm
|
25
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m0znay2
|
25
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m0znay2
|
26
26
|
:body: Fellow fan of `Array#permutation` I see! Could have just used `Array#combination`, though.
|
27
27
|
:replies:
|
28
28
|
- :author: NullT3rminated
|
29
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m0znlsy
|
29
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m0znlsy
|
30
30
|
:body: I think they should add `Array#digg` to the standard library
|
31
31
|
:replies: []
|
32
32
|
- :author: _tfa
|
33
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m10ymdx
|
33
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m10ymdx
|
34
34
|
:body: |-
|
35
35
|
```ruby
|
36
36
|
input = File.read("input.txt").split("\n")
|
@@ -69,18 +69,18 @@
|
|
69
69
|
```
|
70
70
|
:replies:
|
71
71
|
- :author: Ill_Information_9522
|
72
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m1b1zz8
|
72
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m1b1zz8
|
73
73
|
:body: I've been using your complex number trick for grids... thanks again, works like a charm! Need to catch up on your solutions after spending the last day catching up myself on the puzzles. How much harder will it get? :p
|
74
74
|
:replies: []
|
75
75
|
- :author: FCBStar-of-the-South
|
76
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m0zrsv3
|
76
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m0zrsv3
|
77
77
|
:body: |-
|
78
78
|
[paste](https://topaz.github.io/paste/#XQAAAQCWBwAAAAAAAAA5GUqKNoFH9WVqAtfQAlEIpeJL/pI3jz8l8zNIKbgBcDs8e/jkEufM3yoDFdhZ+yEf8qLEaYbQkVMczFDglBo54Df7x04iyapFESymP4RpA8pK7/Oo81GULm0seNo4p2lgswLwoNgGrdZhMabcEyYWZIT4KUpQErXdOPoKse6pKtT3JZL0rB1tPM2EkwStv2DpPpJo+GKSP9yHTrSm9ZneZ+KYGmUTRxErhBtg93jpclModLhQSpnwYneVUFMFQiCrkqDGmefi8uKhKQ88epNB0Tncu4DKTPI8YoXaPXuHPsbsntKZGWQaj7wAXSBNEMAf9DV6sn5/VtUy6wrVNIHfnJFjsNXb7+T5Y76WZ0sC1cSadqiooQ6syScsmSrKQ3nxYn0uSWlZzv2DILX4sEXAosmJXvjRGXdMlynUjmqvxz7XMi6vvhpvcf7gTbUIckFKkEV1PDWV+U91MaX4ZgkX13RB8RIRsbrA2m4/1WtjB9ymoJd+5QzhxwTyYsRXg4+S1l8rb4n5oa3p8S5HB+PekoacUxxCnMdFGEBR+e+dkcKd/Boqm788e+/5YS6p19zjz0UIweVnSOOSGO7VJoTmWeKQI9kI7g4/y+jfN4ThSSz3cJVxbw9Trl6Zt/At5DRknhmggN3EIev3B/11n0YEgQ6U/t3/OsBHvlh4DXMxjcYL0HlqvNy2QdAlPNHuFd9bCKsELx3HpPjRg7YsIASS01aViLS3PEsi4cYg/ldcZgIHNYE09pTe5EMBnvGL4BTGlSvDc7zqy1HM7PUCGxywfdCeH57c8n+C3HfE8lRLT3f/EkIJNkE+MCtBaC2KBBGJO9P+gYOQVjaVf+X5Ujf05SsiIUbPSnOV0xPZ6i9J/+v5axI=)
|
79
79
|
|
80
80
|
Abuse of Ruby map and not my proudest code
|
81
81
|
:replies: []
|
82
82
|
- :author: alexbaguette1
|
83
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m0zsyz0
|
83
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m0zsyz0
|
84
84
|
:body: |-
|
85
85
|
Suprised it worked this easily.
|
86
86
|
|
@@ -91,7 +91,7 @@
|
|
91
91
|
[Part 2](https://topaz.github.io/paste/#XQAAAQBaAgAAAAAAAAA5GUqKNoFH6SMqoVC09YUYpRrZq3oCFpfxXu9nP0lKhMM6pt8OBX3NbPRuatlL47kGgI+ZTKskiShBT3sxm24XXUTwUH9yfPPOQGUeUudn/tXPSUVxzv9ThJ5G/RRixgnwBWorLUqr1mm99Ia1IzKBJTQyDdXDkIePw1MRehVyM+daRqSRKfiVxilt2RkzP3lWzxE1uaql2iSOyz40jXQsa6h+btA4+MX2s/vTr3Gi3emXq9WNzcpGDbecGD0QnDECukkKO206GNETwJaH60N6ilAoUmk/BHSxCUFHjtX1+jcMCE1Odp/zGCV8OitbdBRgy6WB881aE0qXcq5LZ7rgrEUeaE7HSyJV+ryMwNWqqXdpR9FTHdn/mDvbtFVS7xh6J2pg3YXAc4T3qR72QURNe+3JNGbKSBUlQqlsk6SvDsOBvV3fpotIxajopInM2QHToU1ozeC1Seqfg/7eXukKhqjbb5BqmZEhAP/4Ehvh)
|
92
92
|
:replies: []
|
93
93
|
- :author: el_daniero
|
94
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m10n7o3
|
94
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m10n7o3
|
95
95
|
:body: |-
|
96
96
|
```ruby
|
97
97
|
input = File.readlines('input08.txt').map(&:chomp)
|
@@ -127,11 +127,11 @@
|
|
127
127
|
```
|
128
128
|
:replies: []
|
129
129
|
- :author: Stronbold
|
130
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m11b8pf
|
130
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m11b8pf
|
131
131
|
:body: "[Solution](https://github.com/Alvaro-Kothe/Advent-of-Code/blob/main/2024/day08.rb)"
|
132
132
|
:replies: []
|
133
133
|
- :author: fredster231
|
134
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m11jdl1
|
134
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m11jdl1
|
135
135
|
:body: |-
|
136
136
|
Full code: https://gist.github.com/scockram/7749109cfd64074051dd33b69817222d
|
137
137
|
|
@@ -153,14 +153,14 @@
|
|
153
153
|
```
|
154
154
|
:replies: []
|
155
155
|
- :author: careyi4
|
156
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m11vdbe
|
156
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m11vdbe
|
157
157
|
:body: |-
|
158
158
|
Took longer to code this than I thought, but it was pretty straight forward, my initial instinct worked perfectly and the change for part 2 was trivial. Manhatten distance and some algebra. Solution runs in a few milisecond.
|
159
159
|
|
160
160
|
[https://github.com/careyi3/aoc\_2024/tree/master/solutions/8](https://github.com/careyi3/aoc_2024/tree/master/solutions/8)
|
161
161
|
:replies: []
|
162
162
|
- :author: globalreset
|
163
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m104v61
|
163
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m104v61
|
164
164
|
:body: |-
|
165
165
|
Pretty straightforward one today but I got hit hard by reading comprehension. I totally missed that the antennas themselves became antinodes in part 2. After I was done I went back and tightened my code up and realized this whole thing becomes really simple if you represent the x,y coordinates as complex numbers.
|
166
166
|
|
@@ -179,7 +179,7 @@
|
|
179
179
|
[github - solution](https://github.com/globalreset/advent_of_code/blob/main/challenges/2024/08/solution.rb)
|
180
180
|
:replies: []
|
181
181
|
- :author: RivtenGray
|
182
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m10dpu8
|
182
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1h9bdmp/2024_day_8_solutions/m10dpu8
|
183
183
|
:body: |-
|
184
184
|
[Github](https://github.com/rivten/aoc-2024/blob/main/08/rivten/08.rb)Learning Ruby for this year's AoC, I like how I get more comfortable with Ruby and the code is reducing in size while keeping clarity (or so I think !)
|
185
185
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
---
|
2
2
|
- :author: FCBStar-of-the-South
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1ha27bo/2024_day_9_solutions/m1815dt
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1ha27bo/2024_day_9_solutions/m1815dt
|
4
4
|
:body: "[paste](https://topaz.github.io/paste/#XQAAAQB1BQAAAAAAAAAyGkrNYxPxU6xvuZs/8lAz4jUZdGtcxCNrBlC+wPZSIDCK+g6seBP+9oUsdbVzJL5ksqfGzfPMJiBUynSKfmWy48YAHBo3XXqY09VJhNgCNrGH4b5VkevJmdwCZ48IvIsCD4C41qLQ4TCOpq4PSwIHaAHcgyjTmp7fXbB6N+JhgKUFq4I+e3H5Tf7IpIqgJYEqikCAW7JZWjcfIcyYtAEpH8Deaa6NOC4yGDlh3SmtkTAi+5I+uhmwsoV/uygBiM5P0xx2DklvGiyGSYUr0LxxZ5ZWgaR6DV8amRFRD1OTMSs0xaCht3gm9f7PbYnsdLS/+AWidd2Vz/yFZFss3oHjCEOTYaneg9x27vCrMcdmCX9k09H/SYEIPZyJpO7og862N0n5XbUIABEmNhEuu/KHiUHRfpJ16RFPsPg0RSxJcQ36bjxRLksZsSNLXZObB2YmiSHqwYWZruEABgOGEjWn1NdF7XwLijc9evs6dadKH+CxIieymrVEpcG51j9+8aES2D5k/gjxtUAChtJsWKJDcv8jdy8KwmpQa+q7dOsRO7hLkUsbkYQnajDl7c9K1mafLwIXXGQHGN3Xs00YOnV7Kd41mqamwyEGLbHV0inapBOBK6ByHN0WH3yfUoE80E25GVeqx2/v/CivLZZ2erhIpXo0OICU+1Az7hJfwpsMOnLKOS53OmBbm0TWYGZoipp6TPapv1pOfzkaKA/4cHnZFAjqrA6c6Mgx//MJAm8=)"
|
5
5
|
:replies: []
|
6
6
|
- :author: globalreset
|
7
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1ha27bo/2024_day_9_solutions/m17lx73
|
7
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1ha27bo/2024_day_9_solutions/m17lx73
|
8
8
|
:body: |-
|
9
9
|
I was really proud of my part 1 approach, even though the code is not very tidy. I never expanded the filesystem but instead calculated the checksum as I go through, alternating between calculating it on a file node from the left and then popping a file off the end and trying to squeeze it into the next free space.
|
10
10
|
|
@@ -13,20 +13,20 @@
|
|
13
13
|
[github - solution](https://github.com/globalreset/advent_of_code/blob/main/challenges/2024/09/solution.rb)
|
14
14
|
:replies: []
|
15
15
|
- :author: careyi4
|
16
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1ha27bo/2024_day_9_solutions/m18upf8
|
16
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1ha27bo/2024_day_9_solutions/m18upf8
|
17
17
|
:body: |-
|
18
18
|
Didn't really enjoy today, but we got it done, brute force with minor optimisations.
|
19
19
|
|
20
20
|
[https://github.com/careyi3/aoc\_2024/tree/master/solutions/9](https://github.com/careyi3/aoc_2024/tree/master/solutions/9)
|
21
21
|
:replies: []
|
22
22
|
- :author: Infinite-Club4374
|
23
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1ha27bo/2024_day_9_solutions/m16d4z9
|
23
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1ha27bo/2024_day_9_solutions/m16d4z9
|
24
24
|
:body: |-
|
25
25
|
All of my solutions are super verbose just cuz my mind doesn’t work the same way as some of you folks but idc I’m completing them and I’m pretty happy about that
|
26
26
|
|
27
27
|
https://github.com/Leftyxiv/advent_of_code/blob/main/2024/day9/day9.rb
|
28
28
|
:replies: []
|
29
29
|
- :author: Stronbold
|
30
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1ha27bo/2024_day_9_solutions/m16xzes
|
30
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1ha27bo/2024_day_9_solutions/m16xzes
|
31
31
|
:body: "[Solution](https://github.com/Alvaro-Kothe/Advent-of-Code/blob/main/2024/day09.rb)"
|
32
32
|
:replies: []
|
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
- :author: Sharparam
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1bi93k
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1bi93k
|
4
4
|
:body: |-
|
5
5
|
```ruby
|
6
6
|
require 'matrix'
|
@@ -37,7 +37,7 @@
|
|
37
37
|
Today felt quite easy, probably because this type of problem has occurred several times in years past.
|
38
38
|
:replies: []
|
39
39
|
- :author: riffraff
|
40
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1bxurp
|
40
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1bxurp
|
41
41
|
:body: |-
|
42
42
|
Reused once more my grid class to get neighbors. I misunderstood part 1 and solved it as part1, so it took nothing to to part2 after I finally did part1 :D
|
43
43
|
|
@@ -68,7 +68,7 @@
|
|
68
68
|
```
|
69
69
|
:replies: []
|
70
70
|
- :author: globalreset
|
71
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1bgwpx
|
71
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1bgwpx
|
72
72
|
:body: |-
|
73
73
|
Man, I was feeling good about this one. Thought I went so fast. I accidentally got the sample data result for part 2 while I was doing part 1 because I forgot to check my 'visited' set. So just had to comment out that line and part 2 was correct on first try. About a minute between part 1 completion and part 2.
|
74
74
|
|
@@ -103,15 +103,15 @@
|
|
103
103
|
```
|
104
104
|
:replies: []
|
105
105
|
- :author: _tfa
|
106
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1cnys0
|
106
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1cnys0
|
107
107
|
:body: "[https://gist.github.com/thofoer/88bb2c1308a3beb5f822229c999bcd73](https://gist.github.com/thofoer/88bb2c1308a3beb5f822229c999bcd73)"
|
108
108
|
:replies: []
|
109
109
|
- :author: Stronbold
|
110
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1cpkyf
|
110
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1cpkyf
|
111
111
|
:body: "[Solution](https://github.com/Alvaro-Kothe/Advent-of-Code/blob/main/2024/day10.rb)"
|
112
112
|
:replies: []
|
113
113
|
- :author: careyi4
|
114
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1cvcfo
|
114
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1cvcfo
|
115
115
|
:body: |-
|
116
116
|
Frustrated myself by misreading the problem and overcomplicating it. It was actually a fairly simple recursive path finding algorithm. No real clever optimisations, runs in a few miliseconds.
|
117
117
|
|
@@ -120,7 +120,7 @@
|
|
120
120
|
[https://github.com/careyi3/aoc\_2024/tree/master/solutions/10](https://github.com/careyi3/aoc_2024/tree/master/solutions/10)
|
121
121
|
:replies: []
|
122
122
|
- :author: FCBStar-of-the-South
|
123
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1dok13
|
123
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1dok13
|
124
124
|
:body: |-
|
125
125
|
Yea I fell into the solve part 2 before part 1 trap because I did not read the question carefully. Initial hunch was to BFS from 0s but backtracking from 9s is much easier to implement.
|
126
126
|
|
@@ -153,7 +153,7 @@
|
|
153
153
|
```
|
154
154
|
:replies: []
|
155
155
|
- :author: el_daniero
|
156
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1du98p
|
156
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1du98p
|
157
157
|
:body: |-
|
158
158
|
I, too, accidentally solved part 2 before part 1.
|
159
159
|
|
@@ -184,7 +184,7 @@
|
|
184
184
|
```
|
185
185
|
:replies: []
|
186
186
|
- :author: Infinite-Club4374
|
187
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1chhwm
|
187
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hau6hl/2024_day_10_solutions/m1chhwm
|
188
188
|
:body: |-
|
189
189
|
(the%20best%20duh)
|
190
190
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
- :author: '442401'
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1ll9mf
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1ll9mf
|
4
4
|
:body: |-
|
5
5
|
Very educational. I enjoyed today's puzzle.
|
6
6
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
[paste](https://topaz.github.io/paste/#XQAAAQCmBAAAAAAAAAARiEJHiiMzw3cPM/1Vl+2nyBa63n8Kw3D1UZFlD3WW8r2Z9pYT30X7PnBBcHhvVYDeawoIrg724t03bzRtEFKq3EaQt+aC2nR+OYZ4ictRUUGoc6jrCQVGb7WP1dLwVfa9/LKeRJi29rlBtKwnVWc4lWefLECWCktqIUoW+ZB6J7BaZfFkFGJOzYANtSlttzIq2Iz3IQRjI5tBoZvyQV4GGv8xFfmNYDJ1WTqxTWVl9u3qdRXUZMqzOuXpnmDVL/Zr5MVYGuP/hZwXkjyeLgoyKdhJuSqd6AX2tKF2X8NB49J/pwWJQFdIRRTUbnvgOy/9HZzkTaGEM82pY1TrjjI5DFEtR71rtVFxC0BTqaP0FISfyYxQvXNNssTTo8UUjXn6YqxG1/e7IZVKTJmE89Oy6CT0WlJ2YcsmwxTXyttFrM105lV0LVLtuNp0P8O3Oo2AgFaquxsbphYUoD8Y02TMTlnz17QWll4gWjG1ikQnFa8uJG6+0C7y3KPeNc7DCiTctA3xcnmIq3hKqWwNpfmcPWf7LLmOu9/k9qi4O9yXFOmCz8wmurFjA1Of7IshfqGJK8WrlAuEXStJ/ztkQanjW5vji0h+LSjyqDXXmrAnLJTrSGQLLaHf+/f9sgUhcaOkZAXMS9UIK7GL8HgjL0BnqSnLSF3Rhiu+MZtoMcL9h1ho9znbXq4uUtlrwdeTMe7kUrU2tuL0lz5627dFQ8L+uCP3)
|
12
12
|
:replies: []
|
13
13
|
- :author: The_Jare
|
14
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1l8pbn
|
14
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1l8pbn
|
15
15
|
:body: |-
|
16
16
|
I still see very few Ruby solutions, so happy to post mine. It just keeps a hash of different elements and how many of each there are, iterates the hash once per blink. I like this approach more than recursive + memo but I can't say why. I don't know which is faster.
|
17
17
|
|
@@ -44,18 +44,18 @@
|
|
44
44
|
```
|
45
45
|
:replies:
|
46
46
|
- :author: feyn
|
47
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1nsg5s
|
47
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1nsg5s
|
48
48
|
:body: |-
|
49
49
|
> return [vs[...l/2].to_i, vs[l/2..].to_i] if l % 2 == 0
|
50
50
|
|
51
51
|
Instead of `vs[...l/2]`, I read it as `vs[...1/2]`. I was so surprised that you can use `1/2` in a range to take half of a string. I tried in in IRB and was sadly dissapointed :D
|
52
52
|
:replies:
|
53
53
|
- :author: The_Jare
|
54
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1o2vrg
|
54
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1o2vrg
|
55
55
|
:body: Haha yeah I need to avoid using lowercase L as a single-letter variable even if this case looks oddly appropriate:)
|
56
56
|
:replies: []
|
57
57
|
- :author: Nnnes
|
58
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1htopa
|
58
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1htopa
|
59
59
|
:body: |-
|
60
60
|
Took a bit of fiddling but here's a half-punchcard-sized full solution I'm happy with. Credit to /u/AlexTelon for the idea of dealing with the numbers as strings most of the time - my solutions with `Math.log10(n).to_i + 1` or `(d = n.digits.reverse).size` could fit (and ran about twice as fast), but the line breaks were awful.
|
61
61
|
|
@@ -72,7 +72,7 @@
|
|
72
72
|
- `@c` has about 127k entries when the program is finished. The largest number is 14 digits long, or 46 binary bits.
|
73
73
|
:replies:
|
74
74
|
- :author: AlexTelon
|
75
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1hxyx1
|
75
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1hxyx1
|
76
76
|
:body: |-
|
77
77
|
Nice one!
|
78
78
|
|
@@ -81,7 +81,7 @@
|
|
81
81
|
Nice trick with`(..)+` !
|
82
82
|
:replies: []
|
83
83
|
- :author: el_daniero
|
84
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1i215l
|
84
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1i215l
|
85
85
|
:body: |-
|
86
86
|
```ruby
|
87
87
|
input = [125, 17]
|
@@ -110,7 +110,7 @@
|
|
110
110
|
```
|
111
111
|
:replies: []
|
112
112
|
- :author: _tfa
|
113
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1hv9va
|
113
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1hv9va
|
114
114
|
:body: |-
|
115
115
|
```ruby
|
116
116
|
input = File.read("input.txt").split.map{|z| [z, 1]}.to_h
|
@@ -136,7 +136,7 @@
|
|
136
136
|
```
|
137
137
|
:replies: []
|
138
138
|
- :author: FCBStar-of-the-South
|
139
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1iy63k
|
139
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1iy63k
|
140
140
|
:body: |-
|
141
141
|
```ruby
|
142
142
|
require_relative 'utils'
|
@@ -174,7 +174,7 @@
|
|
174
174
|
Looked up lantern fish after seeing all the posts referencing it. Looked it up and immediately knew this is the algorithm to go for. It was not obvious that the number of distinct stones scales slowly/converges!
|
175
175
|
:replies: []
|
176
176
|
- :author: globalreset
|
177
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1hi4yx
|
177
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1hi4yx
|
178
178
|
:body: |-
|
179
179
|
Wasted a bunch of time memoizing a dfs search before I abandoned it. Even cutting off large paths of the search with the cached counts was killing me in time/space. Then it dawned on me to just operate directly on the cache rather than using the call stack to hold it or an array in memory. This solution runs in 80ms.
|
180
180
|
|
@@ -200,7 +200,7 @@
|
|
200
200
|
```
|
201
201
|
:replies: []
|
202
202
|
- :author: ni3t
|
203
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1hit82
|
203
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1hit82
|
204
204
|
:body: |-
|
205
205
|
Since we don't get the fancy @cache annotation that pythonistas can use I had to implement it myself:
|
206
206
|
|
@@ -232,22 +232,22 @@
|
|
232
232
|
```
|
233
233
|
:replies: []
|
234
234
|
- :author: careyi4
|
235
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1i5ox1
|
235
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1i5ox1
|
236
236
|
:body: |-
|
237
237
|
Not too bad today, part 1, simple brute force approach to get the logic correct, second part, recursive solution with caching.
|
238
238
|
|
239
239
|
[https://github.com/careyi3/aoc\_2024/tree/master/solutions/11](https://github.com/careyi3/aoc_2024/tree/master/solutions/11)
|
240
240
|
:replies: []
|
241
241
|
- :author: Stronbold
|
242
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1ilqae
|
242
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1ilqae
|
243
243
|
:body: "[Solution](https://github.com/Alvaro-Kothe/Advent-of-Code/blob/main/2024/day11.rb)"
|
244
244
|
:replies: []
|
245
245
|
- :author: eggselent_folk
|
246
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1jwn7s
|
246
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1jwn7s
|
247
247
|
:body: "~200ms for part 2\n\nI spent a lot of time finding optimization because simplest solution for part 1 does not work at all for part 2 \U0001F923\n\nAfter a while, finally I got to\\>!analyzing the pattern and found out it can be memoized.!\\<\n\n```ruby\ninput = '2701 64945 0 9959979 93 781524 620 1'.split(' ').map { |x| x.to_i }\n\n$memoize = {}\ndef blink(num, i)\n return $memoize[\"#{num}-#{i}\"] if $memoize[\"#{num}-#{i}\"] != nil\n return 1 if i > 75\n\n return $memoize[\"#{num}-#{i}\"] = blink(1, i + 1) if num == 0\n\n len = num.to_s.length\n if len % 2 == 0\n return $memoize[\"#{num}-#{i}\"] = blink(num.to_s[0...(len/2)].to_i, i + 1) +\n blink(num.to_s[(len/2)...len].to_i, i + 1)\n end\n\n return $memoize[\"#{num}-#{i}\"] = blink(num * 2024, i + 1)\nend\n\ntotal = 0\ninput.each { |num| total += blink(num, 1) }\nputs total\n```"
|
248
248
|
:replies: []
|
249
249
|
- :author: JAntaresN
|
250
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1kjzf7
|
250
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hbm0al/2024_day_11_solutions/m1kjzf7
|
251
251
|
:body: |-
|
252
252
|
I treated it like a tree, and did a dfs with memoization, which worked quite well
|
253
253
|
|
@@ -1,42 +1,42 @@
|
|
1
1
|
---
|
2
2
|
- :author: _tfa
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m1ttukt
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m1ttukt
|
4
4
|
:body: |-
|
5
5
|
Long and complicated solution, but finally it worked.
|
6
6
|
|
7
7
|
[https://gist.github.com/thofoer/fcdda1a0743f193f878590dd9042378f](https://gist.github.com/thofoer/fcdda1a0743f193f878590dd9042378f)
|
8
8
|
:replies: []
|
9
9
|
- :author: FCBStar-of-the-South
|
10
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m1rqteo
|
10
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m1rqteo
|
11
11
|
:body: |-
|
12
12
|
Not proud of this one. First instinct was to get all the distinct edges and do some sort of union find to collect them into sides. Was annoying to implement with the orientation and stuff. Eventually came to the sub for help and just decided to go with the counting corners and 16 different cases.
|
13
13
|
|
14
14
|
[paste](https://topaz.github.io/paste/#XQAAAQALCwAAAAAAAAA5GUqKNoFH9WVqAtfQAlEIpeJL/pI3jz8l8zNIKbgBcDs8fKlEL/CNiVvHcK3eo2f1wG2uFy9c4gJqYPLUFmRQObk0r1ZXyU23Tm34gRt6y0eQyY1K3b+i262JFsBcUTwua3DLm6KTBbQg8CC8Rodb9gL52GlTW0N2qORt7dBV4CwUpm3lLu6RLl1ogK0d63e9tyuueHgAgtxDMoatd9vGGfGZnY21xRp25IJiEMKhh6Ke86I4FrZ8W9A37xgrFUJUloGcNqKnSchj7irMNiXDS00k5w9V9YulY2B59SdWfQ14ghDCtqD3XnYKarwPGUY07fC3AijJRjv8HS3WPreoiuTIRBr7jkEuNp+a5WplzZDFSvUA+SGvi/PwnaD6/ZivkZFvbyeGBve+j0ziP92qTpuA5DmMkD2uZQDd+y2oke9Tk70dnbo77SUwQW4eBW4AHYcFQ9W/I+dsop7XLo3cgYxJyi94YHJA5Vvh7jJXh9FAEoE9lQAeU0T1kuZFrNislGm9IDh1+f9nrO1HUPOnaovDrBljkmE7FeHjbjQHYGpKdAX2cognxu58PU7LwXRVCWlNbGSYa/60kDDAqw2gmNBJ74N2E6qTmkhe3vxmWX628uns27Zsp9WIQBOvdglNCGkAcbq1PLl9zIxjwYDAFZ86ZJXkfMZls0TiaLAN57rItao/tYvm9HaNAkrjlPMvcWl2QbkCPZgFl6j7upXZH8qJjP91A9cMAP6oww0PYbukUe/Oqt4VwubY1JScxdH7567llJM0gBq97AYi6UUUv/BD+crMh2ZoKCP5bR9xMub4YFHsJSbjNk8RfkIHoVa8SVXfWdN5ryqLk0c3iT+FRgTbd3gPOcKMgw35FIsTYCUah2N/Hvi9z6y7yA23tURikbXuDpMuIhiw/4Ve+nGvMGAsL6B/bWYABDb2btKaFeDRO+Yh/AidiuA6GgFTlbpJNkWgooMHH7n6hEs6THsdLxLwM5UpXNxwvD+F2RnUF/HzGFb6R424CjWQCsUzYpFIHF56/3z4m1SKfcODNZH2o13nGEsYhHv3lfuDLZheKTIDtldt0JBcCONc3mGHNCGSuiId8Z2Ue678cKufKm7MfB/0hnlAXs5yF9g3uimDv5ihxe20x1f3z1BKNmvVIUzxquHODfLhkYyLXv36hWmo5kW0841c9eGMdYrA5+P/+ggtgg==)
|
15
15
|
:replies: []
|
16
16
|
- :author: careyi4
|
17
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m1pa6ug
|
17
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m1pa6ug
|
18
18
|
:body: |-
|
19
19
|
Probably the most messy code I've written this year so far for finding side counts for part 2, but aside from that, straight forward version of the "count islands problem", easy solution with recursion. Part 2 usues part 1 as a tool to generate the data to compute the sides. I'm 100% sure there is a better way to do it, but this worked!
|
20
20
|
|
21
21
|
[https://github.com/careyi3/aoc\_2024/tree/master/solutions/12](https://github.com/careyi3/aoc_2024/tree/master/solutions/12)
|
22
22
|
:replies:
|
23
23
|
- :author: Physium
|
24
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m1zyrxc
|
24
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m1zyrxc
|
25
25
|
:body: |-
|
26
26
|
I just want to say thank you for writing this in ruby. As messy as you think it is, i was able to visualise how you counted sides and implemented a similar approach to you.
|
27
27
|
|
28
28
|
You are the only one that use a dfs approach that i could understand and relate to. THANK YOU!
|
29
29
|
:replies:
|
30
30
|
- :author: careyi4
|
31
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m21b5to
|
31
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m21b5to
|
32
32
|
:body: Ahh you are very welcome! Glad it helped!!
|
33
33
|
:replies: []
|
34
34
|
- :author: Stronbold
|
35
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m1p6fhq
|
35
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m1p6fhq
|
36
36
|
:body: "[Solution](https://github.com/Alvaro-Kothe/Advent-of-Code/blob/main/2024/day12.rb)"
|
37
37
|
:replies: []
|
38
38
|
- :author: firetech_SE
|
39
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m1qhvc1
|
39
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m1qhvc1
|
40
40
|
:body: |-
|
41
41
|
Spent a lot of time thinking today, but happy to have come up with a solution without using any kinds of hints.
|
42
42
|
|
@@ -51,14 +51,14 @@
|
|
51
51
|
^1) ^Using ^Set ^instead ^of ^Array ^for ^quicker ^deletion ^in ^part ^2.
|
52
52
|
:replies: []
|
53
53
|
- :author: eggselent_folk
|
54
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m1qtvud
|
54
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m1qtvud
|
55
55
|
:body: |-
|
56
56
|
I stored direction of fences (perimeters), and then traverse all perimeters to only increase number of sides once for each continuous perimeters with the same direction.
|
57
57
|
|
58
58
|
[CODE](https://topaz.github.io/paste/#XQAAAQABDQAAAAAAAAA0m4poOBCMfthGvIqKnJBTU3eCvWf8e8dOecf0I5sIQTLtbcTd+HjCfYpKjvhIQVogm5aX2yu9Jh6koUIOjZBgppsFea2VpHS3B1Hw1hnHVet4Q3X4nWbYdyk1Fdj8ZETXiirCwsSaIuTtQS2Cf6RQdrrPc4iWsZq9WY0FeWxa7rzevx3vVvzzMvpf/2KddB/dnF3XEfrg4cuVuebBZSYZKbebtS/y84FY5p65+hRuUoOvrLmOYR7pg6ORXwYnidFYSxbwxgpUVMso/ehH87PNgziYVRAtA9wdB5gmqnYjUfSqQZFaoIzNTtofuCZDH1TJo9WkxvGM69CcelhxLB+rJJxQ6SePoEayFUpXcriKQM0ltyuBcXvz3/+RzR8exM577LPyezUWkU4Cdii1RCZDBEyF8VON66xlnjLJv5NVaIxrHTkb78hJZfmwDXudeAFuHMHM9jQ92+7nzRCsQXB/PwgYm0uq4YBiBSHhtg87uXifXW0V8FTlLNbagP1utEZEF2lQ4e6hboWY1roXQO/5G8FSl63dVdp3q4ZXKwxvuFnSYQM0fJWwVqEvT9QF3R1lityGYvuzw9a6/zBP9PEJpzdRYMroDuUQPG0aFRBWPMB7ikXEjZB+4jUC1opmUhNLFtSAUruQL72AcXRvHOYRrUTybUSIXt6U/W6SR6Wk0yXrYNfrL/WVXAcnVto4/BBF8/0Lg7rTuC3QLKjrKXGCRLzgMXM3RRon7IBnoNwzCqlm4HkbrlVvli81Q5gHfOQkREzKdVPJ4oSIvX/2U0NjExT7LYLsXxRMJREGOyKwBQkMBv0oM4wOlbwPStVaEknV7ExY0Wr93Z0bG3MT4bk1a53s7Wj56Ur+F+SvrJe6lXrfls+Ys0ELJy5sroWzwkhqpEv2JCYah+fRN2EYGIsj8K6UCY3SIO4Yt75yMBo6agnqDOkZYH39tERA+ZnB/20hIRR1rNHxNJwqQulaC3N4UtsEfF2Tlyj6gD9NoNrzQz6tAzriYQC3n+ZhkiLFbmROjwXOc8Otnv/F5ge+)
|
59
59
|
:replies: []
|
60
60
|
- :author: globalreset
|
61
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m1nplow
|
61
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hcdnk0/2024_day_12_solutions/m1nplow
|
62
62
|
:body: |-
|
63
63
|
I had to get out the old pencil and paper to figure out how to count unique sides of a shape. Happy with this solution. My get\_regions function is basically "go to every (unseen) point and do a bfs for that point's matching neighbors". Used Vector to make stepping in a given direction simple.
|
64
64
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
- :author: mpyne
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1yfahi
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1yfahi
|
4
4
|
:body: |-
|
5
5
|
I actually did this in Rust first but I think Ruby makes this pretty elegant in conjunction with a bit of more advanced high school algebra
|
6
6
|
|
@@ -33,7 +33,7 @@
|
|
33
33
|
```
|
34
34
|
:replies: []
|
35
35
|
- :author: Symbroson
|
36
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1uhhgl
|
36
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1uhhgl
|
37
37
|
:body: |-
|
38
38
|
golfed both parts: 164 bytes
|
39
39
|
|
@@ -45,7 +45,7 @@
|
|
45
45
|
```
|
46
46
|
:replies: []
|
47
47
|
- :author: globalreset
|
48
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1to61k
|
48
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1to61k
|
49
49
|
:body: |-
|
50
50
|
My strategy started off thinking I was going to do some dynamic programming to get to the result. But I quickly scrapped that and fell on my trusty Z3 solver. Which made part 2 pretty trivial. So after I was done, I went back and re-educated myself about how to solve a system of equations (without a solver!). And Cramer's rule came in handy.
|
51
51
|
|
@@ -70,7 +70,7 @@
|
|
70
70
|
[github - solution](https://github.com/globalreset/advent_of_code/blob/main/challenges/2024/13/solution.rb)
|
71
71
|
:replies: []
|
72
72
|
- :author: riffraff
|
73
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1trx40
|
73
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1trx40
|
74
74
|
:body: |-
|
75
75
|
I initially solved part 1 with brute force, knowing it would not work, then I went straight to Z3 cause I need to save brain cycles for future problems :)
|
76
76
|
|
@@ -119,7 +119,7 @@
|
|
119
119
|
```
|
120
120
|
:replies: []
|
121
121
|
- :author: Sharparam
|
122
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1u0zjj
|
122
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1u0zjj
|
123
123
|
:body: |-
|
124
124
|
[LANGUAGE: Python]
|
125
125
|
|
@@ -130,14 +130,14 @@
|
|
130
130
|
But for part 2 that obviously wouldn't work, so I had to switch to Python to get (easy) access to Z3: [[GitHub]](https://github.com/Sharparam/advent-of-code/blob/main/src/2024/13/part2.py)
|
131
131
|
:replies: []
|
132
132
|
- :author: careyi4
|
133
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1uaeue
|
133
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1uaeue
|
134
134
|
:body: |-
|
135
135
|
Easy maths today!
|
136
136
|
|
137
137
|
[https://github.com/careyi3/aoc\_2024/tree/master/solutions/13](https://github.com/careyi3/aoc_2024/tree/master/solutions/13)
|
138
138
|
:replies: []
|
139
139
|
- :author: _tfa
|
140
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1uasny
|
140
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1uasny
|
141
141
|
:body: |-
|
142
142
|
```ruby
|
143
143
|
@input = File.read("input.txt")
|
@@ -158,14 +158,14 @@
|
|
158
158
|
```
|
159
159
|
:replies: []
|
160
160
|
- :author: Stronbold
|
161
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1ut6aq
|
161
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1ut6aq
|
162
162
|
:body: |-
|
163
163
|
[Solution](https://github.com/Alvaro-Kothe/Advent-of-Code/blob/main/2024/day13.rb)
|
164
164
|
|
165
165
|
Solved with linear algebra.
|
166
166
|
:replies: []
|
167
167
|
- :author: FCBStar-of-the-South
|
168
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1uz84m
|
168
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1uz84m
|
169
169
|
:body: |-
|
170
170
|
```ruby
|
171
171
|
require_relative 'utils'
|
@@ -205,7 +205,7 @@
|
|
205
205
|
Sure love when the input is nice to you.
|
206
206
|
:replies: []
|
207
207
|
- :author: iwanttoseeyourcatpls
|
208
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1tjnxv
|
208
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hd4wda/2024_day_13_solutions/m1tjnxv
|
209
209
|
:body: |-
|
210
210
|
[github](https://github.com/ggggbbybby/aoc2024/blob/master/day13.rb)
|
211
211
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
- :author: JAntaresN
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hdvhvu/2024_day_14_solutions/m22vdlg
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hdvhvu/2024_day_14_solutions/m22vdlg
|
4
4
|
:body: |-
|
5
5
|
[github link](https://github.com/jw-rx-93/advent-of-code-2024/blob/main/day14/day14.rb)
|
6
6
|
|
@@ -9,21 +9,21 @@
|
|
9
9
|
Part 2, simply using part 1 to brute force until a tree appeared. Honestly all I had to do was look for the trunk, but this required me to know what the tree looked like before hand, so it's a bit cheesing it. Originally I considered looking for a pattern where I would check for a 3, 5, 7 pattern but the trunk approach was easier since it is a simple 3, 3, 3 pattern.
|
10
10
|
:replies: []
|
11
11
|
- :author: careyi4
|
12
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hdvhvu/2024_day_14_solutions/m21yspj
|
12
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hdvhvu/2024_day_14_solutions/m21yspj
|
13
13
|
:body: |-
|
14
14
|
Fun simulation code, but the second part got me a little bit. Then I decided to dump 10000 iterations of ascii terminal vis into a text file. ctrl-f for a long chain of '#' characters, found it and had the iterations also dump into the file above each frame. Very silly solution but worked!
|
15
15
|
|
16
16
|
[https://github.com/careyi3/aoc\_2024/tree/master/solutions/14](https://github.com/careyi3/aoc_2024/tree/master/solutions/14)
|
17
17
|
:replies: []
|
18
18
|
- :author: '442401'
|
19
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hdvhvu/2024_day_14_solutions/m211gxk
|
19
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hdvhvu/2024_day_14_solutions/m211gxk
|
20
20
|
:body: |-
|
21
21
|
[paste](https://topaz.github.io/paste/#XQAAAQD5BwAAAAAAAAARiEJHiiMzw3cPM/1Vl+2nyBa63n8Kw3D1UZFlD3WW8r2Z9pYT30ODveiMJ3JeJFSTLhdWR3FmXt2oGu9YdB1CZE/gbIVlI1reXAJ8hMN6/7ctv/R0Gq8QgadIdMfp96vKa6SL0+aCJbqFXXQPgfIdtmSyzc0vmg67mqsuw6FBP+h6e62YhnTlA1M9ZB4fFkq2IwKQB3KdY5OyU39DVK423dPSFsZaMUaZPmrWqRemZmUxTaFe24U0F1OH+kMj9WfvRpS/5KxpCmVKWoOWV7aD7HWNapE4+uUuy17VxFh6KVOPIImIePgLUWBrVJ/WORNx9hCMM3kZqnkhtbkRO42eksRrlrGae6ac6HcQqh5yUioH8o8bzSFTg3A1vW9LB1HIGBCZIkfD3VwQnG2ktnq3YTPhdrIQ8NtFTNQmjIHdIecGZiJ0wC8FRwbMm+WHj0gQIf2hZ4xOrJS/bmKCP0bJcJCzjmnoJ+kS8PZQFSWoodkIqxgRMweGE3RPHQZLcTiIt+fgz1tN1Rbh5x6gRMDqBr/GY8aHHaqmskM1EE1Sa74Kwe5JhfrTTMKTlkq0Je4ijjQ5eAv/FjUBlecdUedPKHfOjU1rEKRASgTZYtkR+4RAhOxN9by1+TXX3blFMS8hi1tn3gR5cfBDbXvZpLpflD7DLDwqnrKtUUcBxT6GHaDW6W8mcmN4nmzT8qlFAQ6jitlOL5r/NgjSTKH66lezo5vMLcs+BKZILQnr1kzjGLVJZlrAjfLqdDch+WBLK1HIY+SFJ2iEwiVcIPqZIm1E7vLIUSn8AU16MgmufZMgMLEt2AYJYPsECZtSF1s6Zyv30w5BfgCM+XFx49FDUHBaCsK7IYiy/G3H9WNVHbP5xTafb6QCGL8etSb3/0B5rQA=)
|
22
22
|
|
23
23
|
Ashamed to say that I had to take a hint from the main thread. Of course the safety factor will be low when the robots are playing at being a Christmas tree.
|
24
24
|
:replies: []
|
25
25
|
- :author: yourparadigm
|
26
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hdvhvu/2024_day_14_solutions/m1zapc1
|
26
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hdvhvu/2024_day_14_solutions/m1zapc1
|
27
27
|
:body: |-
|
28
28
|
1115/747
|
29
29
|
|
@@ -32,14 +32,14 @@
|
|
32
32
|
[GitHub](https://github.com/phene/advent-of-code/blob/main/2024/14/14.rb)
|
33
33
|
:replies: []
|
34
34
|
- :author: FCBStar-of-the-South
|
35
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hdvhvu/2024_day_14_solutions/m20hz1s
|
35
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hdvhvu/2024_day_14_solutions/m20hz1s
|
36
36
|
:body: |-
|
37
37
|
[paste](https://topaz.github.io/paste/#XQAAAQBdBAAAAAAAAAA5GUqKNoFH9WVqAtfQAlEIpeJL/pI3jz8l8zNIKbgBcDtBnHwB0CRbBF+F9hNoUjkUtOS/X/ERl2aixnmPmVTO8ihaWOMh31/f3Q1zLWH7F6R00l6RGeDO0jreNP7EvY3PTzZqtcxb5RsbMz90I/ZfBOsQAywaMAjun3bW8cpyFEqjc0j8kCBgmmJoHhu7yQZzRIH+xNVGSrO0yyJmVrOksWBbA0KVUYsy6Cucdruq/mvoGJ3UGoFATeyeBHnDxnTEH4gPglavFLM46aTOP0hnROPZIPB3fAGxD0sixBXxyyABiNhLnUjFQ6oM+UsSM3bdPrCVRUoCrwGKCCc+fKEIXUkP7RQuWYoDTAiaEACjEhU8h8GZtNaeZ/A02TehyOrl40bLkwhruWJHKKW/Mqn2a353+CqsWg7QdVONzNr0CEq4NF4ogz5ss3LlIWpM9PYlijrCYUJ1HQJ21p/SZrbQTr/nQWYBmfPTclbCzZmeCqnu7Y+kxTxmAFIbMHZDtH+O+1FYyjzNGIY6dY7jDqHEn1QEUcE1iJPwH/tjIcnK8krcYKfHCK2yOBdUJVAWuPwvy2I7LPaxsOAA0Ko7gwYhcnvO25vqHNYB7SfSvqW0OdvkQqG34hejARc2x8X56QSnmwG14bgmJVvJceQ8Xw2JCCMtC3N5lxTYyb3/+IEJsg==)
|
38
38
|
|
39
39
|
Why code when manual inspection do trick (and probably faster too)
|
40
40
|
:replies: []
|
41
41
|
- :author: Stronbold
|
42
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hdvhvu/2024_day_14_solutions/m20p7jj
|
42
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hdvhvu/2024_day_14_solutions/m20p7jj
|
43
43
|
:body: |-
|
44
44
|
[Solution](https://github.com/Alvaro-Kothe/Advent-of-Code/blob/main/2024/day14.rb)
|
45
45
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
- :author: FCBStar-of-the-South
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hele8m/2024_day_15_solutions/m28qx6c
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hele8m/2024_day_15_solutions/m28qx6c
|
4
4
|
:body: |-
|
5
5
|
[paste](https://topaz.github.io/paste/#XQAAAQCTDwAAAAAAAAA5GUqKNoFH9WVqAtfQAlEIpeJL/pI3jz8l8zNIKbgBcDs8fKlEL/C49oYSKRg6kqFigCWb/16n+qCCjbP0ro+FJ5Lds084T3zBc6WcbkVlzWed3N6KtpvKaegCunJV8PM0gPtPpMyqCFRqRG829y5sW84lHf6woq6lGRggpQyqR7GtmLGaPMMY2BfleWpgpEm1HehYyjrmilBo/w/R+WezfouXB0TNNU1kP96i35zUeTHQbIPC8LikUpClkoA0K0fyiHTaY50HOGOb0GF4HgcCtxyh+HZH/HjFPjZOooy8IMOSaSor4dxQGsMNj5+zyUhqSqMndNhvIFm6VhtpkWIwAXSUBhlhz+GGp9pBDlFIOwmJ4dG0Z0vZ052IDprrvXxMEZfPDTBi0YQNNXwjgaFbp0YV+nJE01p6+6E6ouZVVwPfENnpQ/s4SQvFUy9UtsDHIax2xVu1kC4z++FnjSiKBF7yoR1cGjM/BBgXAS+mDoTOBPM+IGuMf8FEChkj3s/klR6Rmq9SfA+GXHymPtePyM8CQWJ3P0+RqmPKwNilieD7nmHgYcoAk63dDvN/12gan6NF+n4j8SQH77hBbmPa495jy3FG0ZuXVf/ti15gvzxQtXUfOsXfUAQFXwgFDZiwN1+fG5Qs7HWRCMAhmN1FlluDk0rwSgiYZO5o/K+S93Y8kmpv4OyfGivuYUiwP/PF+YeUMJFPR8WVT0sHESeKriG78MOOhYN/DKvMK7Ev+68IXsMHf4IavaQKetmm/Ol0VNWaz2mn3ejAVCPQcVnrfEQKFW0o+zlVOtBu2qv05dqpQxpU776Y++8iXbWDRs7Aotg0FU2TLIPhkybf6VnWpYKMmGK2l1LU7Ip/hMGZ7gvJKqYS2RcHo4Fj2O/F7BTP7Ke+JGatcs8lSZ+YtP4YX9rkIbKqeo2kdn/4S+Hw16RBmkE0q3p/Ww93JGmNbYa18XminY40lisb5OP3ZF42BYAJomWUIj/1qQfrM9T70Veju3/bInk4wxmRN1GLBYUObx5SZ/RCRSNwINfUpEnEU4ZmsML8eSHiYzoy9xwWjFTOCmNYw1dAKjhGrzCj8Yh+lCw3SYT7p8JFVw0YlT2uKBQE5b+rUnHpWKr4A3wGRW92ycqFzunDlKtXKUPDQxcH8JukIVks3P01tYqJqn9YPesFaPjf2SXQ3A5cJTZKjHr/DCLhF6Fg45bklpG6uY09yTL3XZ0bKmz6qDCzs4LvgMZyqLc4XWgofyfJI1EvgQgVHP7LW0oRZ7yskMWxlbuzhza7N/gCiW7ZN51J6B3wHF06LRSdof//eZDSmiJVL7Chu4dZJ+uLiIUZHEwP+4xXQpZFJbE7jKQpIPv7cO8Z95Fj0ygFHrS24c+KoJqWFcps0jbx+sJX8AhIZ4w6iBQT7IHOQ6SX1ifet5izobBHGJxCpNS5uqzk2MK5+8MGp/7FCJbQCD7R2t/jJg1Ifo+0dzDYxLwKhMjFP+jCfJIZ1E2kotRRd5kxYefiAUPqV+j0kgzI6iL/iB6PVBLFqC6T0gF5x/jmqeBOLOggncddkFERNBlOOS5ml/tyJl10irhFcmt+iv5AVlkVyL62ULAH60KmcTrWrJll4TZ2cIN0DugFaOtHL+TE8pJ/UoERX0eUfqPhWkuJ16MmmO8pkkviYICpvZK6753+eWen)
|
6
6
|
|
@@ -9,18 +9,18 @@
|
|
9
9
|
This was my 250th stars all events together! I will probably put a pause on the remaining 10 days until the new year and just enjoy my travel now
|
10
10
|
:replies: []
|
11
11
|
- :author: JAntaresN
|
12
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hele8m/2024_day_15_solutions/m27vmxb
|
12
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hele8m/2024_day_15_solutions/m27vmxb
|
13
13
|
:body: |-
|
14
14
|
[day15 ruby](https://github.com/jw-rx-93/advent-of-code-2024/blob/main/day15/day15.rb)
|
15
15
|
|
16
16
|
Not proud of what i wrote cuz it's alot, but part 2 is almost the same as part1, only really needed a special looping condition for the up and downs since overlapping between 2 indices is only possible there, while left and right movement is irrelevant since we can treat [, and] the same as O in horizontal movement
|
17
17
|
:replies: []
|
18
18
|
- :author: Stronbold
|
19
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hele8m/2024_day_15_solutions/m27hdah
|
19
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hele8m/2024_day_15_solutions/m27hdah
|
20
20
|
:body: "[Solution](https://github.com/Alvaro-Kothe/Advent-of-Code/blob/main/2024/day15.rb)"
|
21
21
|
:replies: []
|
22
22
|
- :author: yourparadigm
|
23
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hele8m/2024_day_15_solutions/m24tmi4
|
23
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hele8m/2024_day_15_solutions/m24tmi4
|
24
24
|
:body: |-
|
25
25
|
1385/1756
|
26
26
|
|
@@ -29,7 +29,7 @@
|
|
29
29
|
[Github](https://github.com/phene/advent-of-code/blob/main/2024/15/15.rb)
|
30
30
|
:replies: []
|
31
31
|
- :author: Sharparam
|
32
|
-
:url: https://www.reddit.com/r/adventofcode/comments/1hele8m/2024_day_15_solutions/m257pq6
|
32
|
+
:url: https://www.reddit.com/r/adventofcode/comments/1hele8m/2024_day_15_solutions/m257pq6
|
33
33
|
:body: |-
|
34
34
|
(1843/4158)
|
35
35
|
|