Compare commits

..

No commits in common. "e60e40ccb2b99cf6fb7b44e1e7d48d9ede18a13a" and "dc84f2c15168d410b3c665e786b7e31168b7bcfb" have entirely different histories.

4 changed files with 0 additions and 151 deletions

View File

@ -1,98 +0,0 @@
118
14
98
154
71
127
38
50
36
132
66
121
65
26
119
46
2
140
95
133
15
40
32
137
45
155
156
97
145
44
153
96
104
58
149
75
72
57
76
56
143
11
138
37
9
82
62
17
88
33
5
10
134
114
23
111
81
21
103
126
18
8
43
108
120
16
146
110
144
124
67
79
59
89
87
131
80
139
31
115
107
53
68
130
101
22
125
83
92
30
39
102
47
109
152
1
29
86

View File

@ -1,31 +0,0 @@
28
33
18
42
31
14
46
20
48
47
24
23
49
45
19
38
39
11
1
32
25
35
8
17
7
9
4
2
34
10
3

View File

@ -1,11 +0,0 @@
16
10
15
5
1
11
7
19
6
12
4

View File

@ -1,11 +0,0 @@
#!/bin/env ruby
require 'pry'
numbers = File.read('./input').split("\n").map(&:to_i).sort
solution = numbers.map.with_index do |num, i|
next if i == 0
num - numbers[i-1]
end
#binding.pry
final = [solution.count(1)+1, solution.count(3)+1]
pp final, final.reduce(&:*)