Skip to content

Given the arrival and departure hours of each band in a festival, this program will find and show the best time to go!

License

Notifications You must be signed in to change notification settings

K-Konstantinidis/BestTime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BestTime

Project

Let's say that you have a free ticket to a music festival but there is a catch, even though the festival is for 24 hours, you are only able to go for 1 hour. You must choose to arrive there when the most amount of bands will be there as you want to meet as many celebrities as you can. Which hours will you choose?

  • The bands will arrive at the start of each hour (e.g. 10:00 not 10:15)

  • The bands will depart 1 minute before the end of each hour (e.g. 11:59 not 12:00)

    • That means that the general rule is: "[Arrival, Departure)"
  • A band can stay there as much time as they want

  • The arrival time of a band can't be less than 0 or less than the departure time

The user inserts the amount of bands that will be in the festival. After that they insert each band name, arrival time and departure time. Then a message will appear on the screen with the best hour(s) to go to the festival.

Screenshots

Errors

UML

About

Given the arrival and departure hours of each band in a festival, this program will find and show the best time to go!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages