Panda Guru LogoPanda
Guru

Amazon OA

Round 1

Questions: Given orders and shifts, return pending orders at the end of each shift.

Input:

If an order is not fully processed by the end of a shift, it will be continued in the next shift.

Input:

Candidate's Approach

Two pointers were used, one on the order processing time and the other on the shift. For every shift, the candidate checked if they could finish the order and moved the pointers accordingly. The candidate passed 11 out of 15 test cases, while the others resulted in Time Limit Exceeded (TLE).

Interviewer's Feedback

No feedback provided.