Open yongchein-o opened 2 years ago
Hey Yong Chein, I think they're trying to say that, for example:
Hope this clears things up!
^Yup, so one possible way of doing it would be to only call the get() of the Lazy class when the customer is being served
Alright thanks!
Hi , can I check the difference between using Lazy to cache the service time and calling get() of the Lazy class when the customer is being served?
Hi @kh1js, I think is when the current customer is being served, by calling get()
, the service time will be retrieved directly and pass it over to that customer. Caching service time is essentially storing that particular service time to some "data". When that service time is needed, can just retrieve it from that "data".
Thank you for your help @wjahoward! I will try to store the service time in lazy.
The question states
This is followed by the arrival times of the customers. Lastly, a number of service times (could be more than necessary) are provided.
Why is there more than necessary?
I also don't quite get what this is trying to say
Anyone able to explain? thanks in advance