Microsoft Interview[Ghosted]

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-05-11Added By Anonymous
Source: Link

OA consists of 2 questions:

1 easy string question & 1 medium-hard.


Medium hard problem:


Consider a scenario where there are N clients, each of whom has placed an order for a handmade item. Each client's order requires a different amount of time to complete, denoted by T[K] hours for the K-th client's order. There's only one employee responsible for making these items, and they follow a specific work routine:


The employee spends 1 hour making the first item.

If the item is finished within that hour, it is delivered to the respective client.

If the item is not finished within the hour, it is moved to the end of the queue of remaining items for further work.

The employee then moves on to work on the next item in the queue.

The question seeks to determine the total time it will take for all clients' ordered items to be completed and delivered, considering this work procedure.


For instance, if the time required for each item is [3, 1, 2] hours respectively, the employee's work schedule would proceed as follows: [1st, 2nd, 3rd, 1st, 3rd, 1st], and the task is to calculate the total time taken for this process.


I cleared the Online Assessment, and then the recruiter scheduled onsite interviews. But here's the kicker—twice, the interviewers didn't show up! And even though the recruiters said they'd reschedule, it never happened. Recruiter is not replying to my mail. Then, just two days ago, I got a rejection email out of the blue. Very disappointing experience

Comments