diff options
Diffstat (limited to 'day06/part2.rb')
-rw-r--r-- | day06/part2.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/day06/part2.rb b/day06/part2.rb new file mode 100644 index 0000000..afc343d --- /dev/null +++ b/day06/part2.rb @@ -0,0 +1,9 @@ +input = $stdin.read.strip.chars + +somm = 0 + +until input[somm, 14].uniq.count == 14 do + somm += 1 +end + +puts somm + 14 |