This website requires JavaScript.
Explore
Help
Sign In
adventofcode
/
2022
Watch
1
Star
0
Fork
You've already forked 2022
0
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
main
2022
/
06
/
golf.rb
2 lines
88 B
Ruby
Raw
Permalink
Blame
History
[
4
,
14
]
.
each_with_object
(
$<
.
read
.
chars
)
{
|
i
,
s
|
p
i
+
s
.
each_cons
(
i
)
.
find_index
{
_1
.
uniq
==
_1
}
}
Reference in New Issue
View Git Blame
Copy Permalink