The winning distance can be directly calculated by determining the percentage of the time that the reindeer spends racing and then multiplying that by the race time instead of the method used in the solution here. It might be worth implementing this change and noting the change in program runtime.
The winning distance can be directly calculated by determining the percentage of the time that the reindeer spends racing and then multiplying that by the race time instead of the method used in the solution here. It might be worth implementing this change and noting the change in program runtime.