Beta

Is Room Reserved?

Description:

You need help booking department.

You have the interval of time ( class with 2 fields: StartDate and EndDate of type DateTime) and list of intervals when room is occupied.

You must check if the room is not occupied in the time frame.(boundaries are inclusive)

Interval Example:

    Interval inter = new Interval
    {
        StartDate = DateTime.Parse("4/6/2019 1:02:32 PM"),
        EndDate = DateTime.Parse("4/7/2019 1:03:32 PM")
    };
Algorithms
Logic
Mathematics

More By Author:

Check out these other kata created by hubencu_st

Stats:

CreatedApr 6, 2019
PublishedApr 6, 2019
Warriors Trained200
Total Skips55
Total Code Submissions394
Total Times Completed44
C# Completions44
Total Stars4
% of votes with a positive feedback rating75% of 20
Total "Very Satisfied" Votes11
Total "Somewhat Satisfied" Votes8
Total "Not Satisfied" Votes1
Total Rank Assessments20
Average Assessed Rank
7 kyu
Highest Assessed Rank
5 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • hubencu_st Avatar
  • hobovsky Avatar
Ad