generated from nus-cs2030/base-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Summary
Not able to pass this test case as it seems some of my customers are waiting forever.
Description:
Waiting customers are not being served for some reason. From the statistics (screenshots below) it seems that some customers are not being dequeued properly and are waiting forever in the queue as a result (771 + 229 = 1000 compared to my 762 + 229 = 991).
For context, my logic works as such for waiting:
Arrive -> Wait (at Arrive time) -> ContinueWait (at server's next available serve time) -> ContinueWait (at server's next available time, if customer is still in the queue) -> Serve (at server's next available serve time) -> Done (server time + service time) -> Rest (at done time).
I'm not sure what is the issue. Would appreciate any help!
Screenshots
Metadata
Metadata
Assignees
Labels
No labels

