Closed DominikMa closed 5 years ago
Hi there! With Waffle closing its doors next month, and the ability to leave more detailed feedback on each classroom page (see “Send Feedback” in the upper right if you are enrolled in the program), we are migrating away from our Waffle board. All issues and conversations here will be migrated onto our internal platforms.
Over the next week, I am leaving these notes in case anyone has further follow-ups they want to get in before the board closes, as well as migrating over the tickets. As of 4/19, I will close all the remaining open tickets, and archive the related Github repository.
The given solution only works for the given inputs. Obviously the outputs of the solution function
are not necessarily between 0 and 1.
With the inputs
vector<int> lane_speeds = {6, 1, 8, 9};
we getwhere some cost values are greater then 1. This is the case if
speed_intended + speed_final
is less thantarget_speed
.With the inputs
vector<int> lane_speeds = {6, 20, 8, 9};
we getwhere some cost values are less then 0. This is the case if
speed_intended + speed_final
is greater than2.0*target_speed
.The simplest solution is to add a min and max call