Jim and the Orders

  • + 1 comment

    I thought about using PriorityQueue, but I'm not sure what to store in it. Would I store custom objects that have two attributes (customer id and time+duration) and then implement a custom Comparator that makes sure that the objects are sorted by time+duration?

    It seems like a lot of work...