z-huu / ece244

0 stars 0 forks source link

Incorrect departure times #27

Closed z-huu closed 11 months ago

z-huu commented 11 months ago

I think has to do with queuing customers at the wrong registers

z-huu commented 11 months ago

Yes, we queue to the wrong register here (testcase 2) image

Compared to solution output: image

The issue probably lies in the fact because we don't handle departs before register opens

z-huu commented 11 months ago

The issue: immediately queued a customer with the just opened register 103.

What should've been done: Update system first (process departs) then queue a customer to the just opened register.

z-huu commented 11 months ago

Issue addressed by reformatting code with updateSingle()