Fixed harmless bug in Day2 code

This commit is contained in:
2018-12-02 11:59:46 +01:00
parent 5230a7031d
commit f352ef1f07

View File

@@ -35,7 +35,7 @@ fun puzzle1() {
fun puzzle2() {
val ids = lines().collect(Collectors.toList())
for (i in 0 until ids.size) {
for (i in 0 until ids[0].length) {
val shortIds = ids.stream()
.map { it.substring(0, i) + it.substring(i + 1) }