5th Nov 2019, 11:40 AM
Preity
Preity - avatar
3 odpowiedzi
0
I can only offer my idea of a simple algorithm to count the minimum numbers of platforms required. If you cycle through the minutes (maybe 5 minutes at a time as all except one are multiples of 5) and see how many buses are waiting at each time. The maximum number of buses present at any one moment will be your minimum number of platforms needed.
5th Nov 2019, 3:09 PM
Russ
Russ - avatar
0
Russ here is what i measured and calculated https://www.sololearn.com/post/170240/?ref=app
5th Nov 2019, 3:11 PM
Preity
Preity - avatar
0
Preity I wasn't really able to follow exactly your algorithm but that's probably because I'm not familiar with C or any similar languages. As such I don't think I can be of any assistance to you, sorry. Good luck though!
5th Nov 2019, 3:28 PM
Russ
Russ - avatar