Court Booking Overlap Check

Determine whether a requested court booking overlaps any existing booking.

Input:

  • Line 1: requested start and end time, e.g. 10:00 11:00
  • Line 2: number of existing bookings, n
  • Next n lines: each an existing booking's start and end time

Output: print Overlap if the requested slot overlaps any existing booking, otherwise print Free.

There is no single required data representation or approach — decide for yourself.

main.py
Loading editor…

Console

Run your code to see output here.

Hints