mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-27 05:40:32 +01:00
Apparantly, part 1 is fast enough for part 2.
This commit is contained in:
@@ -45,7 +45,7 @@ stdin.on 'end', () ->
|
||||
state = '.#./..#/###'
|
||||
view state
|
||||
|
||||
for _ in [1..5]
|
||||
for _ in [1..18]
|
||||
newrows = []
|
||||
oldrows = state.split '/'
|
||||
|
||||
@@ -77,5 +77,4 @@ stdin.on 'end', () ->
|
||||
newrows.push row
|
||||
|
||||
state = newrows.join '/'
|
||||
console.log(state.count(/#/g))
|
||||
view state
|
||||
console.log _, state.count(/#/g)
|
||||
|
||||
Reference in New Issue
Block a user