We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 252d8db commit cbd7d6bCopy full SHA for cbd7d6b
src/main/kotlin/Day14.kt
@@ -112,7 +112,7 @@ fun main() {
112
return !allUnique
113
}
114
115
- fun iterateUntilSymmetrical(robots: List<Robot>, width: Int, height: Int): Long {
+ fun iterateUntilUnique(robots: List<Robot>, width: Int, height: Int): Long {
116
var seconds = 0L
117
do {
118
seconds++
@@ -121,7 +121,7 @@ fun main() {
121
return seconds
122
123
124
- fun part2(input: List<String>) = iterateUntilSymmetrical(input.parseRobots(), 101, 103)
+ fun part2(input: List<String>) = iterateUntilUnique(input.parseRobots(), 101, 103)
125
126
printAndCheck(input, ::part2, 6512)
127
0 commit comments