generated from nus-cs2030/base-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Summary
The order of printing the results seems to be off.
Description:
I think it might have something to do with my event comparator? The logic for my comparator first checks if the difference between the events are less than ERR (1E-6), if difference falls within the error (ERR), it checks if the first event has a greater customer number than the second event, if so, it returns 1 else it returns -1. If difference does not fall within the error, it returns Double.compare(first.getTimeStamp(), second.getTimeStamp()). It seems correct to me but I may be mistaken.
Screenshots
Metadata
Metadata
Assignees
Labels
No labels
