Company: Freecharge
Difficulty: medium
Partitioning the Servers Problem Description A local cloud services provider CLTech offers On Demand Services (ODS) for customers to host their operations on CLTech's servers. Customers send requests for resources to CLTech as and when they require them. Each request can be represented as a list of 3 strings, [request_id, request_start_time, request_end_time] . Example Request: ["300.11.4380", "03:34:49", "05:23:11"] Description of Fields in a Request: request_id : A unique ID is given to each request, which is used to trace the origin of the request. request_start_time : The time when the serving of the request needs to begin, if the request is served (and not rejected). The request is allocated a partition of the resources beginning at the time. Time is given in hh:mm:ss format. request_end_time : The time when the serving of the request ends. The request occupies the resource till request_end_time , after which it is freed. Time is given in hh:mm:ss format. Being a private organizat