Cleaning
This commit is contained in:
		
							parent
							
								
									2dd97d116f
								
							
						
					
					
						commit
						75d5cb8943
					
				| 
						 | 
					@ -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);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -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));
 | 
					 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user