This website works better with JavaScript.
Explore
Help
Sign In
Advent-of-Code
/
AdventOfCode-2018
Watch
1
Star
0
Fork
You've already forked AdventOfCode-2018
0
Code
Issues
Pull Requests
Releases
Wiki
Activity
Put back code removed to test if it was necessary.
Browse Source
master
Danila Fedorin
5 years ago
parent
c8f1a23c0b
commit
b370a741e3
1 changed files
with
1 additions
and
0 deletions
Show all changes
Ignore whitespace when comparing lines
Ignore changes in amount of whitespace
Ignore changes in whitespace at EOL
Show Stats
Download Patch File
Download Diff File
1
day1_1.cr
Unescape
Escape
View File
@ -1,3 +1,4 @@
puts
File
.
read
(
"
day1
"
)
.
split
(
"
\n
"
)
.
select
{
|
it
|
!
it
.
empty?
}
.
map
(
&
.
to_i
)
.
sum
Write
Preview
Loading…
Cancel
Save
Reference in New Issue
Repository
Advent-of-Code/AdventOfCode-2018
Title
Body
Create Issue