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,13 +1,13 @@
|
|
1
1
|
---
|
2
2
|
- :author: J-Swift
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f9i4ujc
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f9i4ujc
|
4
4
|
:body: |-
|
5
5
|
Ruby
|
6
6
|
|
7
7
|
https://github.com/J-Swift/advent-of-code-2019/tree/master/day\_01
|
8
8
|
:replies: []
|
9
9
|
- :author: ECTXGK
|
10
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f9etbve
|
10
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f9etbve
|
11
11
|
:body: |-
|
12
12
|
Ruby
|
13
13
|
|
@@ -26,14 +26,14 @@
|
|
26
26
|
```
|
27
27
|
:replies:
|
28
28
|
- :author: nakilon
|
29
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f9f31db
|
29
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f9f31db
|
30
30
|
:body: |-
|
31
31
|
```ruby
|
32
32
|
ruby -rmll/core_ext -e 'p `pbpaste`.split.sum{ |s| MLL::nest_while_list[s.to_i, ->_{_/3-2}, ->_{_>0}].to_a.most.rest.sum }'
|
33
33
|
```
|
34
34
|
:replies: []
|
35
35
|
- :author: Unihedron
|
36
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f98due7
|
36
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f98due7
|
37
37
|
:body: |-
|
38
38
|
I had wrong answer
|
39
39
|
|
@@ -63,11 +63,11 @@
|
|
63
63
|
With [reception for my poem](https://i.imgur.com/BJPi4gP.png) being better than expected (I had no expectations) I guess I will write more on the next days :P
|
64
64
|
:replies:
|
65
65
|
- :author: tslater2006
|
66
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f98uztc
|
66
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f98uztc
|
67
67
|
:body: Upvoted for the poem :)
|
68
68
|
:replies: []
|
69
69
|
- :author: BluFoot
|
70
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f98e7ds
|
70
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f98e7ds
|
71
71
|
:body: |-
|
72
72
|
Ruby 24/148
|
73
73
|
|
@@ -77,18 +77,18 @@
|
|
77
77
|
```
|
78
78
|
:replies:
|
79
79
|
- :author: Unihedron
|
80
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f98f6fz
|
80
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f98f6fz
|
81
81
|
:body: |-
|
82
82
|
Very compact I approve
|
83
83
|
|
84
84
|
If you're golfing, I'm p. sure I can beat you with `-p`
|
85
85
|
:replies:
|
86
86
|
- :author: BluFoot
|
87
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f98gvi5
|
87
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f98gvi5
|
88
88
|
:body: I've never used `-p` before, can you show me an example? I can't figure it out..
|
89
89
|
:replies:
|
90
90
|
- :author: Unihedron
|
91
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f98ke18
|
91
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f98ke18
|
92
92
|
:body: |-
|
93
93
|
[-p demo](https://tio.run/##KypNqvz/XyXeViVeryi1LLWoOPX//4zUnJx8rvL8opwUrsSkZBBO4fqXX1CSmZ9X/F@3AAA "Ruby – Try It Online")
|
94
94
|
|
@@ -101,7 +101,7 @@
|
|
101
101
|
On second thoughts, I take that back, ultimately you have to print a sum which is not per-line, so it probably doesn't save much
|
102
102
|
:replies: []
|
103
103
|
- :author: jamie_ca
|
104
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f9dns88
|
104
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f9dns88
|
105
105
|
:body: |-
|
106
106
|
Firstly, a unified solution in ruby:
|
107
107
|
|
@@ -150,7 +150,7 @@
|
|
150
150
|
```
|
151
151
|
:replies: []
|
152
152
|
- :author: ShinobuLove
|
153
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f9b9r1k
|
153
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4axxe/2019_day_1_solutions/f9b9r1k
|
154
154
|
:body: |-
|
155
155
|
Where are my Ruby-bros at?
|
156
156
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
- :author: pwhyz
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9ia8ek
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9ia8ek
|
4
4
|
:body: |-
|
5
5
|
# Ruby Golfed
|
6
6
|
|
@@ -21,14 +21,14 @@
|
|
21
21
|
Full code at [paste](https://topaz.github.io/paste/#XQAAAQBrAgAAAAAAAAAyGUj/Tve38MzRtZbm3r89bULIsmWYplfgMPs86+76gdev4zrFsCgRGPloppeyn2vkDgnVs1tL4aCNpxNV+Ek2X7ciU/gt7UN550xVUvCcR4Qkv7PIzvyJEYPreWCavBQkbQyvKIgs77AtEnIYz9fCdBzwU1juv6ExDoe/y+Vmeba3UmCzVjjLn9vplrjNswDNH2MdTVu4YfsvT0qZ4PaDlFiyX7LfonVUKXWjpx92l2SeG8fJi+vJTARXv8CDKClDHPuduRsPXSfkW9UV69SZp8tyRHgDVl4zPHiP3REFUeSqGYBiF74yyXpLcoEgwe1GMA+D+90LpkWV1bVFLKLiCGpvz1akP4rt7nB9TrmdJloD/l5ea1d96X8sEIZ3oZ3mPmU7/185jgA=)
|
22
22
|
:replies: []
|
23
23
|
- :author: J-Swift
|
24
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9i4v23
|
24
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9i4v23
|
25
25
|
:body: |-
|
26
26
|
Ruby
|
27
27
|
|
28
28
|
https://github.com/J-Swift/advent-of-code-2019/tree/master/day\_02
|
29
29
|
:replies: []
|
30
30
|
- :author: Unihedron
|
31
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9fd7tb
|
31
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9fd7tb
|
32
32
|
:body: |-
|
33
33
|
Code
|
34
34
|
|
@@ -90,21 +90,21 @@
|
|
90
90
|
[It looked better in monospace](https://i.imgur.com/zcjuPI2.png). Also I want to tackle every poem type: Day 1 has been haiku, day 2 is shaped poems, will there really be enough types of poems for me to write?!
|
91
91
|
:replies:
|
92
92
|
- :author: tslater2006
|
93
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9fe4pf
|
93
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9fe4pf
|
94
94
|
:body: |-
|
95
95
|
Here's a few different types, should be able to find enough I think?
|
96
96
|
|
97
97
|
[Types of poems](https://www.writersdigest.com/whats-new/list-of-50-poetic-forms-for-poets)
|
98
98
|
:replies: []
|
99
99
|
- :author: ni3t
|
100
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9h25cv
|
100
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9h25cv
|
101
101
|
:body: |-
|
102
102
|
Ruby 2.7.0-dev (hehe)
|
103
103
|
|
104
104
|
https://github.com/ni3t/advent-2019/blob/master/2_1202_program\_alarm.rb
|
105
105
|
:replies: []
|
106
106
|
- :author: BluFoot
|
107
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9f9uu3
|
107
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9f9uu3
|
108
108
|
:body: |-
|
109
109
|
Ruby, #55/#150
|
110
110
|
|
@@ -145,7 +145,7 @@
|
|
145
145
|
```
|
146
146
|
:replies:
|
147
147
|
- :author: BluFoot
|
148
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9fc1f6
|
148
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9fc1f6
|
149
149
|
:body: |-
|
150
150
|
Golfed it up /u/Unihedron
|
151
151
|
|
@@ -157,7 +157,7 @@
|
|
157
157
|
```
|
158
158
|
:replies:
|
159
159
|
- :author: Unihedron
|
160
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9fcq9j
|
160
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9fcq9j
|
161
161
|
:body: |-
|
162
162
|
`$<.read.split(?,)` -\> `$/=?,;$<`
|
163
163
|
|
@@ -168,11 +168,11 @@
|
|
168
168
|
the huge line I don't want to check for now lol. Still working on my poem
|
169
169
|
:replies:
|
170
170
|
- :author: BluFoot
|
171
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9gb3xt
|
171
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9gb3xt
|
172
172
|
:body: I thank you for your teachings, that first one is ridiculous
|
173
173
|
:replies:
|
174
174
|
- :author: Unihedron
|
175
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9irna3
|
175
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9irna3
|
176
176
|
:body: |-
|
177
177
|
Some more:
|
178
178
|
|
@@ -183,7 +183,7 @@
|
|
183
183
|
BTW, $/=?, helps in this case only because , is not a number. if the seperator is 0, i.e. the input is 10203 and we want 1 2 3, the input "lines" are respectively 10 20 3 which to_i's into 10 20 3. to_i is smart about non-numericals however, and 1, 2, 3 is neatly squeezed into 1 2 3
|
184
184
|
:replies:
|
185
185
|
- :author: BluFoot
|
186
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9ixten
|
186
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9ixten
|
187
187
|
:body: |-
|
188
188
|
Wow, the splat operator to make it an array is next level. I'll do anything for 1 char in golf! ANYTHING!
|
189
189
|
|
@@ -198,7 +198,7 @@
|
|
198
198
|
```
|
199
199
|
:replies: []
|
200
200
|
- :author: UnconstrainedRibhus
|
201
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9flov9
|
201
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9flov9
|
202
202
|
:body: |-
|
203
203
|
Ah, I like the assignment of `a, b, c, d`
|
204
204
|
|
@@ -238,7 +238,7 @@
|
|
238
238
|
```
|
239
239
|
:replies: []
|
240
240
|
- :author: el_daniero
|
241
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9h0hpu
|
241
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e4u0rw/2019_day_2_solutions/f9h0hpu
|
242
242
|
:body: |-
|
243
243
|
**Ruby**
|
244
244
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
- :author: ni3t
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5bz2w/2019_day_3_solutions/f9j0jt5
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5bz2w/2019_day_3_solutions/f9j0jt5
|
4
4
|
:body: |-
|
5
5
|
360/417 Ruby
|
6
6
|
|
@@ -11,14 +11,14 @@
|
|
11
11
|
Part 2 I was sorting by the closest single coordinate instead of the closest manhattan distance.
|
12
12
|
:replies: []
|
13
13
|
- :author: J-Swift
|
14
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5bz2w/2019_day_3_solutions/f9j1apy
|
14
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5bz2w/2019_day_3_solutions/f9j1apy
|
15
15
|
:body: |-
|
16
16
|
Ruby
|
17
17
|
|
18
18
|
https://github.com/J-Swift/advent-of-code-2019/tree/master/day\_03
|
19
19
|
:replies: []
|
20
20
|
- :author: Gck2702
|
21
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5bz2w/2019_day_3_solutions/f9jv0zh
|
21
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5bz2w/2019_day_3_solutions/f9jv0zh
|
22
22
|
:body: |-
|
23
23
|
Ruby solution. Didn't make a global leaderboard since it's at 6AM local time :P
|
24
24
|
|
@@ -27,25 +27,25 @@
|
|
27
27
|
Edit: Code was a bit too long for comment as per the rules, made a Topaz link.
|
28
28
|
:replies:
|
29
29
|
- :author: "[deleted]"
|
30
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5bz2w/2019_day_3_solutions/f9lc2po
|
30
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5bz2w/2019_day_3_solutions/f9lc2po
|
31
31
|
:body: This is really clean! Have definitely taken a few things away from your solution.
|
32
32
|
:replies: []
|
33
33
|
- :author: judofyr
|
34
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5bz2w/2019_day_3_solutions/f9izjj2
|
34
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5bz2w/2019_day_3_solutions/f9izjj2
|
35
35
|
:body: |-
|
36
36
|
15/45. Ruby.
|
37
37
|
|
38
38
|
[paste](https://topaz.github.io/paste/#XQAAAQD6AgAAAAAAAAARiAiHwcJlXK8fjPChEJL1+xwkvfukGlOLvmbXfJqC//3EXi0ij0i8MFt788CFBTrOgUFI38vUQSdifWlfhk230CThMNuPdhYBX30gGW42TlTURcQRPg50VungEpgPISRkkR1jlnkIy8ojasAhIihGCU/iAnPcuo1dS8OHmiRDvm4x4Y94HfVqqjnkL8NPDsN+Z/7HmqPnUrj6OvoErg6+vi26mpkGrJ/kZjRCAEipz07Ywg/c9OPKd+8BRdHjJ0m8h9LNpun3v+jiw2+hK0HVYW5cjOIW9OAzMQ9ZTK6x5A56mMk/1xx55MMYVbjaF5e0ib73adf/moxkHnSI1Xae+5TnlD9dCtexSdTa2kDWO5zWUgtaEyw/4NDjqdK+8elMgqKRMC8BM39Bf6/Y1kx+bkKLu7RCYcxauUb3d3gU9tF4zuOtRgZy3/9xVrMA)
|
39
39
|
:replies:
|
40
40
|
- :author: ni3t
|
41
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5bz2w/2019_day_3_solutions/f9j09gx
|
41
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5bz2w/2019_day_3_solutions/f9j09gx
|
42
42
|
:body: |-
|
43
43
|
https://ruby-doc.org/core-2.5.1/IO.html#method-i-lines
|
44
44
|
|
45
45
|
`IO#lines` is being deprecated in favor of `IO#each_line`
|
46
46
|
:replies: []
|
47
47
|
- :author: forlivesavingveggies
|
48
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5bz2w/2019_day_3_solutions/f9j8upm
|
48
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5bz2w/2019_day_3_solutions/f9j8upm
|
49
49
|
:body: |-
|
50
50
|
Who wants to talk about Ruby!!?
|
51
51
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
---
|
2
2
|
- :author: Chibbot
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/fbxgvz7
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/fbxgvz7
|
4
4
|
:body: |-
|
5
5
|
Ruby solution for [Part One](https://repl.it/@Xerillius/AOC-41)
|
6
6
|
|
7
7
|
Working on part two but it's giving me a lot more trouble than I thought it would.
|
8
8
|
:replies: []
|
9
9
|
- :author: ni3t
|
10
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9m0ha4
|
10
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9m0ha4
|
11
11
|
:body: |-
|
12
12
|
Ruby - leaderboard be damned!
|
13
13
|
|
@@ -16,21 +16,21 @@
|
|
16
16
|
https://github.com/ni3t/advent-2019/blob/master/4_secure_container.rb
|
17
17
|
:replies:
|
18
18
|
- :author: bibstha
|
19
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9m1so2
|
19
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9m1so2
|
20
20
|
:body: |-
|
21
21
|
I had to go through the Enumerable api to find out `slice_when` which is very much similar to `chunk`. Took me way too long to find the method.
|
22
22
|
|
23
23
|
https://github.com/bibstha/advent2019/blob/master/day04/soln\_test.rb
|
24
24
|
:replies: []
|
25
25
|
- :author: J-Swift
|
26
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9lzhlu
|
26
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9lzhlu
|
27
27
|
:body: |-
|
28
28
|
Ruby
|
29
29
|
|
30
30
|
https://github.com/J-Swift/advent-of-code-2019/tree/master/day\_04
|
31
31
|
:replies: []
|
32
32
|
- :author: Unihedron
|
33
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9m0da5
|
33
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9m0da5
|
34
34
|
:body: |-
|
35
35
|
Find rocket fuel requirements;
|
36
36
|
|
@@ -71,7 +71,7 @@
|
|
71
71
|
Today's poem is a [chant](https://www.writersdigest.com/editor-blogs/poetic-asides/poetic-forms/chant-poems-poetic-forms). My poem sounded cooler in my head, but after having typed it I feel meh, didn't do it justice I think.
|
72
72
|
:replies:
|
73
73
|
- :author: nicereddy
|
74
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9m2sn3
|
74
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9m2sn3
|
75
75
|
:body: |-
|
76
76
|
Interesting, your solution errors for me.
|
77
77
|
|
@@ -80,18 +80,18 @@
|
|
80
80
|
```
|
81
81
|
:replies:
|
82
82
|
- :author: Unihedron
|
83
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9m2ur6
|
83
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9m2ur6
|
84
84
|
:body: Thanks, there should be a `.to_s`. I recreated it from memory (since I changed the code between going into part 2, which is lost after saving), it's entirely my fault!
|
85
85
|
:replies: []
|
86
86
|
- :author: J-Swift
|
87
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9m4jl1
|
87
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9m4jl1
|
88
88
|
:body: |-
|
89
89
|
Ahhhhhhh `each_cons`. Thats what I was trying to think of before I said screw it and just did a handrolled for-loop version.
|
90
90
|
|
91
91
|
Nice job
|
92
92
|
:replies: []
|
93
93
|
- :author: shandley256
|
94
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9m8jm9
|
94
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9m8jm9
|
95
95
|
:body: |-
|
96
96
|
Ruby
|
97
97
|
|
@@ -107,7 +107,7 @@
|
|
107
107
|
```
|
108
108
|
:replies: []
|
109
109
|
- :author: krazyito65
|
110
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9nl0xl
|
110
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9nl0xl
|
111
111
|
:body: |-
|
112
112
|
# RUBY
|
113
113
|
|
@@ -116,7 +116,7 @@
|
|
116
116
|
Here's my Ruby solution, I've updated it, and now provides both solutions at around 1s.
|
117
117
|
:replies: []
|
118
118
|
- :author: Gck2702
|
119
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9mcb7u
|
119
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e5u5fv/2019_day_4_solutions/f9mcb7u
|
120
120
|
:body: |-
|
121
121
|
Short & sweet Ruby solution
|
122
122
|
|
@@ -1,28 +1,28 @@
|
|
1
1
|
---
|
2
2
|
- :author: J-Swift
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/f9uejgs
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/f9uejgs
|
4
4
|
:body: |-
|
5
5
|
Ruby
|
6
6
|
|
7
7
|
https://github.com/J-Swift/advent-of-code-2019/tree/master/day\_05
|
8
8
|
:replies:
|
9
9
|
- :author: maxverse
|
10
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/fa88hbm
|
10
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/fa88hbm
|
11
11
|
:body: |-
|
12
12
|
> had a real tough time with this one due to unclear requirements on how position modes would or would not be provided.
|
13
13
|
|
14
14
|
Man, I'm glad I'm not alone here! I'm working through this one now, also in Ruby, and this is the first day where the instructions left me totally puzzled
|
15
15
|
:replies:
|
16
16
|
- :author: J-Swift
|
17
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/fa90g2f
|
17
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/fa90g2f
|
18
18
|
:body: I actually just realized I still had a bug in this due to position modes in my OutputOp. Instructions definitely were not clear on this, but I think the rule is basically "Everything except Input might provide position modes"
|
19
19
|
:replies:
|
20
20
|
- :author: maxverse
|
21
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/fa90hm1
|
21
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/fa90hm1
|
22
22
|
:body: So, here's a simple question - is input the first number?
|
23
23
|
:replies:
|
24
24
|
- :author: J-Swift
|
25
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/fa90vlh
|
25
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/fa90vlh
|
26
26
|
:body: |-
|
27
27
|
Do you mean, what does 'Input' and 'Output' mean? I didn't understand that either. Input means ask the user for input (i.e. `gets`) and output means print it to the user (i.e. `puts`). So if the Input command looks like this:
|
28
28
|
|
@@ -31,14 +31,14 @@
|
|
31
31
|
That means ask the user for input and store the number they type in at position 55
|
32
32
|
:replies: []
|
33
33
|
- :author: prophetjohn
|
34
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/f9qzu7a
|
34
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/f9qzu7a
|
35
35
|
:body: |-
|
36
36
|
Went for a readable ruby version
|
37
37
|
|
38
38
|
[https://github.com/j-clark/adventofcode/blob/master/2019/aoc\_5\_2.rb](https://github.com/j-clark/adventofcode/blob/master/2019/aoc_5_2.rb)
|
39
39
|
:replies: []
|
40
40
|
- :author: Unihedron
|
41
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/f9p9yxj
|
41
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/f9p9yxj
|
42
42
|
:body: |-
|
43
43
|
Driving further into space
|
44
44
|
|
@@ -71,15 +71,15 @@
|
|
71
71
|
Part 2 solved with help from discord user [Tim#5138](https://github.com/tslater2006); had bug where \>!I was treating "non-zero" as "larger than zero"!\<. Shame on me for not reading part 1! (But I'll happily take rank 3!) (accidental factorial: 3! = 6)
|
72
72
|
:replies:
|
73
73
|
- :author: 1vader
|
74
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/f9pfg42
|
74
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/f9pfg42
|
75
75
|
:body: Nice poem! Also congrats on rank 3.
|
76
76
|
:replies:
|
77
77
|
- :author: Unihedron
|
78
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/f9pfgi2
|
78
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/f9pfgi2
|
79
79
|
:body: Thank you! I had a lot of high (sub-10) ranks in the past 2 years... competition is fierce this year around!
|
80
80
|
:replies: []
|
81
81
|
- :author: krazyito65
|
82
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/f9pf56s
|
82
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6carb/2019_day_5_solutions/f9pf56s
|
83
83
|
:body: |-
|
84
84
|
# RUBY
|
85
85
|
|
@@ -1,10 +1,10 @@
|
|
1
1
|
---
|
2
2
|
- :author: MrMacintosh
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6tyva/2019_day_6_solutions/f9xvxfr
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6tyva/2019_day_6_solutions/f9xvxfr
|
4
4
|
:body: 'inefficient but simple solution in Ruby: [paste](https://topaz.github.io/paste/#XQAAAQCPAgAAAAAAAAA5GUqKNoFH6SMqoVC09YUYpbqMrEvvyYvRhwZlJkq0byGdgqaN1DyZ4BeAGQvLX9hzOpDc9HB3NyYDmpf5+sQnXSqva5cbWL/Syniop04NfK89duWTDepNy91/IgPAWkXJAKtjVFHubqZeqYYFY8OQ8jL7LbdZJiksxNg/J59FhxiGwWzSOTF4pCY4pdBpAki/bDUhK2aEZsYGDvO5BchM9buTidBtwF8h3Hs8VyaIIRn56vL1J8cZVCbIQ2cferiMT6zxsS9fZK+JNcoI0UMhsDHvWfFtR/VMyB/UZVjF23G0iHHm7CF1X7nHxRX5JwXey7k+BkQscdOICOscq2YwpCHk42HuyAP6UdjZMYKIytBrnLVM/AtsMGy1QXTtXiprby/08xQZqlvIfq9aiB7Lm0XLm/p+djIsehIY6y0wqsXkBcueIYdK4HGkgvRdfYGVOU5460ZxeyQmgLJFZq46l8imXV/hcUfSFOf7d9JHLaLUbLKoLbrylMafUACC3hmMYe7v1DJX5IkT/suY0g==)'
|
5
5
|
:replies: []
|
6
6
|
- :author: petercooper
|
7
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6tyva/2019_day_6_solutions/f9vjndw
|
7
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6tyva/2019_day_6_solutions/f9vjndw
|
8
8
|
:body: |-
|
9
9
|
**Ruby**
|
10
10
|
|
@@ -26,14 +26,14 @@
|
|
26
26
|
```
|
27
27
|
:replies: []
|
28
28
|
- :author: J-Swift
|
29
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6tyva/2019_day_6_solutions/f9ueh2b
|
29
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6tyva/2019_day_6_solutions/f9ueh2b
|
30
30
|
:body: |-
|
31
31
|
Ruby
|
32
32
|
|
33
33
|
https://github.com/J-Swift/advent-of-code-2019/tree/master/day\_06
|
34
34
|
:replies: []
|
35
35
|
- :author: Unihedron
|
36
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6tyva/2019_day_6_solutions/f9t7uhp
|
36
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6tyva/2019_day_6_solutions/f9t7uhp
|
37
37
|
:body: |-
|
38
38
|
I love graph problems,
|
39
39
|
|
@@ -60,7 +60,7 @@
|
|
60
60
|
[Uni never learns](https://i.imgur.com/eaV9568.png); I'm very upset.
|
61
61
|
:replies: []
|
62
62
|
- :author: mikal82
|
63
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6tyva/2019_day_6_solutions/f9tj2rq
|
63
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6tyva/2019_day_6_solutions/f9tj2rq
|
64
64
|
:body: |-
|
65
65
|
[Scala](https://topaz.github.io/paste/#XQAAAQBPAwAAAAAAAAA3mImUzseuUG6pDUraFQrRv+4PrJ9QFyDrTD3pCNT16gRfe9CQ1WQQIOrEQXqEE9sqsXCkpCCJmeMyYopz1gAR11gWZVnfGbZvWnyoYAiZWqKQiI0rFwCNDqCbsII0ZSUUfxsL8aj+vf/o0SB+WIwEkGDJyrZSbvAU4Wo/ldsE9wbR01Lq+zjuH3UDauM+w494GHxJLDWKY2ZYMNWJWwaDwegYoX48yvM8cnDSRsxrhzoOESfS9HJIAdxh/7Xs0GsHR4VFbaj4pOmimnAX3VPnbqPBcKsenxkVZMOZIxO9LcbfGj4RvvvWDw8D9YMfyawuehTooRPRvvs28XeVMgNmMkMNlOkfAGQzUVFFIAyePfgYRLAZYhQIJQ1qSvM0gyY4Xy7MPy9Zdi4OYxnXRWDHfXq5U0KlQK/Pc1VWBfkCTI/07na2ZQuOMd6hGHBpX6W8Nm4iJ7V15oasO6niOuOM2c77TIaesD1RWvdC1H/z66mCDaVXjCfyTRDF3aSUskZjltxXN2yb9Fzk/jP1k/hW/1i7NaBl9oQiV8Q1tJWQ2o93q6uTunFzVlc1E8yyKFEyxyn3qRZQrlhRWR5jlQZuVJr6wGI4+ryewXMt3gOEgAg///PAjZs=)
|
66
66
|
|
@@ -69,11 +69,11 @@
|
|
69
69
|
Scala turns out to be surprisingly good for AoC (so far), although not as elegant as Clojure and not as simple as Python or Ruby.
|
70
70
|
:replies:
|
71
71
|
- :author: fidesachates
|
72
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6tyva/2019_day_6_solutions/f9u5qqa
|
72
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6tyva/2019_day_6_solutions/f9u5qqa
|
73
73
|
:body: Very impressed with how concise your solution is
|
74
74
|
:replies: []
|
75
75
|
- :author: prophetjohn
|
76
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e6tyva/2019_day_6_solutions/f9u1qfl
|
76
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e6tyva/2019_day_6_solutions/f9u1qfl
|
77
77
|
:body: |-
|
78
78
|
**Ruby**
|
79
79
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
---
|
2
2
|
- :author: J-Swift
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e7a4nj/2019_day_7_solutions/fa27oma
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e7a4nj/2019_day_7_solutions/fa27oma
|
4
4
|
:body: |-
|
5
5
|
Ruby
|
6
6
|
|
7
7
|
https://github.com/J-Swift/advent-of-code-2019/tree/master/day\_07
|
8
8
|
:replies: []
|
9
9
|
- :author: Kache
|
10
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e7a4nj/2019_day_7_solutions/fa0mffc
|
10
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e7a4nj/2019_day_7_solutions/fa0mffc
|
11
11
|
:body: |-
|
12
12
|
Super fun! In Ruby, after refactoring and reusing `Intcode`:
|
13
13
|
|
@@ -25,7 +25,7 @@
|
|
25
25
|
```
|
26
26
|
:replies: []
|
27
27
|
- :author: el_daniero
|
28
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e7a4nj/2019_day_7_solutions/f9z55xo
|
28
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e7a4nj/2019_day_7_solutions/f9z55xo
|
29
29
|
:body: |-
|
30
30
|
First time using a thread in Ruby!
|
31
31
|
|
@@ -68,7 +68,7 @@
|
|
68
68
|
The current Intcode Computer is here: [code-challenges/aoc2019/ruby/intcode.rb](https://github.com/daniero/code-challenges/blob/master/aoc2019/ruby/intcode.rb)
|
69
69
|
:replies: []
|
70
70
|
- :author: ShinobuLove
|
71
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e7a4nj/2019_day_7_solutions/f9z31gy
|
71
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e7a4nj/2019_day_7_solutions/f9z31gy
|
72
72
|
:body: |-
|
73
73
|
[Ruby](https://github.com/CodeGradox/advent-of-code-2019/blob/master/day07/main)
|
74
74
|
|
@@ -77,7 +77,7 @@
|
|
77
77
|
I had to look up an explanation for part 2, but figured it out in the end.
|
78
78
|
:replies: []
|
79
79
|
- :author: tckmn
|
80
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e7a4nj/2019_day_7_solutions/f9wshfv
|
80
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e7a4nj/2019_day_7_solutions/f9wshfv
|
81
81
|
:body: |-
|
82
82
|
ruby 3rd/28th
|
83
83
|
|
@@ -107,15 +107,15 @@
|
|
107
107
|
```
|
108
108
|
:replies:
|
109
109
|
- :author: captainAwesomePants
|
110
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e7a4nj/2019_day_7_solutions/f9wv4wk
|
110
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e7a4nj/2019_day_7_solutions/f9wv4wk
|
111
111
|
:body: I thought to myself "better bundle everything in a class if I need to save the IP and the data and the inputs and such." You just returned a tuple of the whole thing. Such a fast tweak, good job!
|
112
112
|
:replies:
|
113
113
|
- :author: mariotacke
|
114
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e7a4nj/2019_day_7_solutions/f9wzh4m
|
114
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e7a4nj/2019_day_7_solutions/f9wzh4m
|
115
115
|
:body: Same here. This is actually a pretty brilliant solution. Keeps the intcode function stateless.
|
116
116
|
:replies: []
|
117
117
|
- :author: yxhuvud
|
118
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e7a4nj/2019_day_7_solutions/f9x3st6
|
118
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e7a4nj/2019_day_7_solutions/f9x3st6
|
119
119
|
:body: |-
|
120
120
|
Funnily enough, at least for me, the whole thing works using the exact same parsed entries, without even having to `dup` it. Which is quite cute considering it is self modifying code.
|
121
121
|
|
@@ -1,24 +1,24 @@
|
|
1
1
|
---
|
2
2
|
- :author: J-Swift
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e7pkmt/2019_day_8_solutions/faxrf8l
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e7pkmt/2019_day_8_solutions/faxrf8l
|
4
4
|
:body: |-
|
5
5
|
Ruby
|
6
6
|
|
7
7
|
https://github.com/J-Swift/advent-of-code-2019/tree/master/day\_08
|
8
8
|
:replies: []
|
9
9
|
- :author: MrMacintosh
|
10
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e7pkmt/2019_day_8_solutions/faba0sa
|
10
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e7pkmt/2019_day_8_solutions/faba0sa
|
11
11
|
:body: 'Quick solution in Ruby: [paste](https://topaz.github.io/paste/#XQAAAQBPAwAAAAAAAAA0m0hHVws1hFaETa6Q5kjKhoRGQhpEGP8Zi+ToEsZir/RFQ7IH8c5mUELULnsWbmAOpk5AZLKP+AK1gsu8ZUsSmbSTP1/SKf2a/sNFu5uy94x755AsIXEkqCUEyyknvTwKlj9h1YxXe/xx5uu3tAde+090KQowBEnZIXKvD6yH9U/uvL28qJ980Ln71J4R9SzKu3Kg0ruR07UvEZpOsKH3r0qvpjHkI8xqE2KKe6Gzy0p3aqlI86wcBykwjhKFMv/DoTV3pMyCh9/qiQW46TkSqMjgVAwUI4zmOexN0gFrmzFBPYPSjl0kmUBBKBtfXFYAxNZ/3A3oLZmxRaRENjpTGXm5nLCY4haOsrscJoer5eq8k9zu1wGKR0KWC59UIc4RtBmRe7KZFbl3L4D/cVLUqWq7NXmeFO64TmwzDmm/go/9AylJHZHbvSJJzCorltNi0mOxB9Yo2TMStbJf892WYHqOcwh4+3xgcfpdrR9cRNTGv5E8+UCPx8OJdVCGUPHrKzpU6FpEB/4NMjVcBFBMchchTMWa+0zJw3uk+HFaSGrOJ7i9KRNzC+HSzZejFUcQr2TdUrBi25xyDRomY4FXrdR0731+t0Ci02uGHv/xWC7e)'
|
12
12
|
:replies: []
|
13
13
|
- :author: dpkcodes
|
14
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e7pkmt/2019_day_8_solutions/fa68fsl
|
14
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e7pkmt/2019_day_8_solutions/fa68fsl
|
15
15
|
:body: |-
|
16
16
|
Here are my solutions in Ruby
|
17
17
|
|
18
18
|
[https://github.com/dpkeesling/adventOfCode/tree/master/2019/day8](https://github.com/dpkeesling/adventOfCode/tree/master/2019/day8)
|
19
19
|
:replies: []
|
20
20
|
- :author: ryanbigg
|
21
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e7pkmt/2019_day_8_solutions/fa374pa
|
21
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e7pkmt/2019_day_8_solutions/fa374pa
|
22
22
|
:body: |-
|
23
23
|
Ruby, Part 1:
|
24
24
|
|
@@ -28,7 +28,7 @@
|
|
28
28
|
```
|
29
29
|
:replies:
|
30
30
|
- :author: petercooper
|
31
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e7pkmt/2019_day_8_solutions/fa3uas1
|
31
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e7pkmt/2019_day_8_solutions/fa3uas1
|
32
32
|
:body: |-
|
33
33
|
Mine is very similar so I'm attaching it to your comment:
|
34
34
|
|
@@ -41,7 +41,7 @@
|
|
41
41
|
```
|
42
42
|
:replies:
|
43
43
|
- :author: petercooper
|
44
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e7pkmt/2019_day_8_solutions/fa3yh7t
|
44
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e7pkmt/2019_day_8_solutions/fa3yh7t
|
45
45
|
:body: |-
|
46
46
|
And part 2:
|
47
47
|
|
@@ -59,7 +59,7 @@
|
|
59
59
|
```
|
60
60
|
:replies: []
|
61
61
|
- :author: el_daniero
|
62
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e7pkmt/2019_day_8_solutions/fa4fdm1
|
62
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e7pkmt/2019_day_8_solutions/fa4fdm1
|
63
63
|
:body: |-
|
64
64
|
Ruby
|
65
65
|
|
@@ -98,6 +98,6 @@
|
|
98
98
|
```
|
99
99
|
:replies:
|
100
100
|
- :author: zxywx
|
101
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e7pkmt/2019_day_8_solutions/fa8o6ne
|
101
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e7pkmt/2019_day_8_solutions/fa8o6ne
|
102
102
|
:body: Neat solution. Nice use of `min_by` and `transpose`
|
103
103
|
:replies: []
|
@@ -1,13 +1,13 @@
|
|
1
1
|
---
|
2
2
|
- :author: J-Swift
|
3
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e85b6d/2019_day_9_solutions/faxrgkx
|
3
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e85b6d/2019_day_9_solutions/faxrgkx
|
4
4
|
:body: |-
|
5
5
|
Ruby
|
6
6
|
|
7
7
|
https://github.com/J-Swift/advent-of-code-2019/tree/master/day\_09
|
8
8
|
:replies: []
|
9
9
|
- :author: Suitable_Flounder
|
10
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e85b6d/2019_day_9_solutions/fa9zrhq
|
10
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e85b6d/2019_day_9_solutions/fa9zrhq
|
11
11
|
:body: |-
|
12
12
|
**Ruby**
|
13
13
|
|
@@ -16,7 +16,7 @@
|
|
16
16
|
Anway, FWIW, [Ruby code](https://topaz.github.io/paste/#XQAAAQDYAwAAAAAAAAAoHInmjW7FQ21VepncIdt88EyjWtU63IQl6JqtLHB2nLT3hJaF+dOKgtxR8uSGS7VNeLB+m6bnxV3dumUheE5ZRkr1ullBW6L/9FK38Zyagat5B8/1oc+0wsi2wV9AwlMi+QDPT7n36Y6eq5Egux+YiPCRAGk2R66MEe9PpELpaA+J63XTIYGxh7tP2hKQXkl0zXPv/U+G6XveWaJYJZcXv08Gj0hEoCVrqvL6NlH+MlLmZQrYcv37YDxzy1gXagYMRUZsPPUYGOAGAJLrQjwzhbqg9yKBgtV3lv82MmA9Bn0Eb+z7loEdZC/TeNO6XwZ2LAdZCENBRVLKnZZ4S3elhXNnzu/Ad+fxaFgbAogWY5u1Z1o5JJKFLiIYqBn2+IhIzdXLLZyg30BJgy9ywOrSM/ULzDXsiGrHIpLol7nEgqovlnCQJmIxM6uz6+d79iErf4DGM3hqIFQ0tPKWd/tIoavd1wpIk0lebXHMEJni4NKMTW8N4qugzSh+KEhX3f98ZRmQ)
|
17
17
|
:replies: []
|
18
18
|
- :author: p_tseng
|
19
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e85b6d/2019_day_9_solutions/fa9qba7
|
19
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e85b6d/2019_day_9_solutions/fa9qba7
|
20
20
|
:body: |-
|
21
21
|
Hi.
|
22
22
|
|
@@ -45,6 +45,6 @@
|
|
45
45
|
See you next time.
|
46
46
|
:replies:
|
47
47
|
- :author: goliatskipson
|
48
|
-
:url: https://www.reddit.com/r/adventofcode/comments/e85b6d/2019_day_9_solutions/fa9qnei
|
48
|
+
:url: https://www.reddit.com/r/adventofcode/comments/e85b6d/2019_day_9_solutions/fa9qnei
|
49
49
|
:body: So ... Part 2 is testing a recursive function?
|
50
50
|
:replies: []
|