Skip to content

pkokoshnikov/booking-processor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The service provides possibility to process batches of bookings.

Input

The first line of the input text represents the company office hours, in 24 hour clock format, and the remainder of the input represents individual booking requests. Each booking request is in the following format. [request submission time, in the format YYYY-MM-DD HH:MM:SS] [employee id] [meeting start time, in the format YYYY-MM-DD HH:MM] [meeting duration in hours]

Example:

0900 1730

2011-03-17 10:17:06 EMP001

2011-03-21 09:00 2

2011-03-16 12:34:56 EMP002

2011-03-21 09:00 2

2011-03-16 09:28:23 EMP003

2011-03-22 14:00 2

2011-03-17 11:23:45 EMP004

2011-03-22 16:00 1

2011-03-15 17:29:12 EMP005

2011-03-21 16:00 3

Output

Your system must provide a successful booking calendar as output, with bookings being grouped chronologically by day. For the sample input displayed above, your system must provide the following output:

Example:

2011-03-21

09:00 11:00 EMP002

2011-03-22

14:00 16:00 EMP003

16:00 17:00 EMP004

About

Test application for smartbics on Jersey

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published