This commit is contained in:
parent
12cab8af56
commit
143679ec7e
1
.github/workflows/solve.yaml
vendored
1
.github/workflows/solve.yaml
vendored
@ -53,7 +53,6 @@ jobs:
|
|||||||
echo "Skipping $script: No input found for $dayname" | tee -a solutions-output.txt
|
echo "Skipping $script: No input found for $dayname" | tee -a solutions-output.txt
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
echo "$input_var"
|
|
||||||
echo "Running $script with input from $dayname" | tee -a solutions-output.txt
|
echo "Running $script with input from $dayname" | tee -a solutions-output.txt
|
||||||
echo "$input_var" | kotlin $script 2>&1 | tee -a solutions-output.txt
|
echo "$input_var" | kotlin $script 2>&1 | tee -a solutions-output.txt
|
||||||
done
|
done
|
||||||
|
@ -34,6 +34,7 @@ for (y in ycoordinates.indices) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun findXmas(y: Int, x: Int): Int {
|
fun findXmas(y: Int, x: Int): Int {
|
||||||
|
println("x: $x, y: $y")
|
||||||
var xmasfound = 0
|
var xmasfound = 0
|
||||||
for (searchOffset in xMasSearchOffsets) {
|
for (searchOffset in xMasSearchOffsets) {
|
||||||
val last = searchOffset.last()
|
val last = searchOffset.last()
|
||||||
|
3802
day04.kts.testvalue
3802
day04.kts.testvalue
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user