This commit is contained in:
Simon Cambier 2023-12-07 08:43:41 +01:00
parent 2dd97d116f
commit 75d5cb8943
2 changed files with 5 additions and 4 deletions

View File

@ -257,6 +257,7 @@ for (const pair of seedsPairs) {
const loc = getMapResult(hum, humidityToLocation); const loc = getMapResult(hum, humidityToLocation);
if (loc < minimalLocation) minimalLocation = loc; if (loc < minimalLocation) minimalLocation = loc;
} }
console.log("minimalLocation: ", minimalLocation);
} }
console.log(minimalLocation); console.log(minimalLocation);

View File

@ -4,6 +4,8 @@ type Race = {
}; };
const races: Race[] = []; const races: Race[] = [];
const timeFrom = new Date().getTime();
// const input = `Time: 47 70 75 66 // const input = `Time: 47 70 75 66
// Distance: 282 1079 1147 1062`.split("\n"); // Distance: 282 1079 1147 1062`.split("\n");
@ -52,7 +54,5 @@ for (const count of counts) {
} }
console.log(mul); console.log(mul);
// console.log(getSpeed(races[0], 2)); const timeTotal = new Date().getTime() - timeFrom;
// console.log(getSpeed(races[0], 3)); console.log(`Time took: ${timeTotal}ms`);
// console.log(getSpeed(races[0], 4));
// console.log(getSpeed(races[0], 5));