diff options
author | Nat Lasseter <nat.lasseter@york.ac.uk> | 2022-12-06 12:04:43 +0000 |
---|---|---|
committer | Nat Lasseter <nat.lasseter@york.ac.uk> | 2022-12-06 12:04:43 +0000 |
commit | a70e8847f1ce8e9ba1fca7863803ffebaeee8641 (patch) | |
tree | b36b62f42d9fd4efdc78ae105ca8f63f03666945 /day06/part2.rb | |
parent | d2c32dcd6889a83a6327304e89cabcbbdad253fb (diff) |
Day 06
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 |