• Guest, before posting your code please take these rules into consideration:
    • It is required to use our BBCode feature to display your code. While within the editor click < / > or >_ and place your code within the BB Code prompt. This helps others with finding a solution by making it easier to read and easier to copy.
    • Don't share a wall of code. All we want is the problem area, the code related to your issue.


    To learn more about how to use our BBCode feature, please click here.

    Thank you, Code Forum.

C# Simple app

NotCoolNick

New Coder
Hello, I have the following problem:

"Create an app that filter rooms and pick the ones that fit the required number of participants.
As a result, the app should return the list of available slots for each of the rooms.
Constraints: a slot start at every 15th ( 0, 15, 30, 45).
Example: room is available between 10:00-17:00 and taken between 11:00-11:30 and 12:30-17:00, meeting is 30min long
the app returns 10:00-10:30, 10:30-11:00, 11:30-12:00, 12:00-12:30 as free spots."

It could be solved on JS, Java, etc., I'm solving in c#. I will appreciate tips on how to approach the problem.
 

Top