Skip to content

Commit 379b0d6

Browse files
add Real-World Example to Intervals
1 parent 5ae6583 commit 379b0d6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Cheatsheet/Intervals/intervals.md

+6
Original file line numberDiff line numberDiff line change
@@ -56,3 +56,9 @@ class Interval:
5656
```
5757

5858
This class provides a simple representation of an interval with a `start` and `end` attribute.
59+
60+
---
61+
62+
### Real-World Example
63+
64+
**Scheduling systems:** Intervals are widely used in scheduling systems. For instance, in a conference room booking system, each booking is represented as an interval. The interval representation is used if the system requires functionality, such as determining the maximum number of overlapping bookings to ensure sufficient room availability. By analyzing these intervals, the system can efficiently allocate resources and prevent double bookings.

0 commit comments

Comments
 (0)