A Python utility designed to manage student course registration by detecting time-interval overlaps. This project demonstrates high-level logic for handling scheduling constraints in academic environments.
- Non-Overlapping Logic: Accurately identifies conflicts where course times intersect.
- Edge-Case Support: Handles back to back classes correctly (start time equals end time of previous class).
- Type Safety: Built using Python’s
typingmodule for reliable data structures.
The algorithm evaluates each new request against current accepted courses. A conflict is flagged unless the intervals are strictly distinct:
Overlap = NOT (New_End <= Existing_Start OR New_Start >= Existing_End)
To run the built-in demo and see the registration report:
python main.py