I am going to make a function that takes starting timing of two movies.like hr1,hr2,min1,min2,and their durations, durnmin1,durmin2 and decides whether we can binge and watch both movies. The criteria are that they must not overlap and that we are not going to wait more than 30 minutes between the end of one and the beginning of the next. It returns true if the criteria are both met and returns false otherwise. You may assume that movie start times are always after 1 pm and before midnight. You may also assume that the first one starts earlier. The order of the input arguments is: hr1, min1, durmin1, hr2, min2, durmin2.
I am unable to understand what will my function will do.what are these timing hr1,hr2? why duration has been given.In that function what i have to do...Thanks in advance for assistance
Aucun commentaire:
Enregistrer un commentaire