Let's improve the code about Alice and Bob and say the following:
There are people painting bicycles and each person has his brush. After that, Alice or Bob have to paint these bikes again but they have to use the same brush that was used to paint the first time.
As soon as the bike was painted by one of these people, the brush that was used must not be used again until Alice or Bob use it to paint the same bicycle the second time.
Let's assume that people take 3 hours to paint the first time,alice and bob take 1 hour to paint the second time.
This is my question, how can I guarantee that the same brush will be used to paint the same bike the second time
Hello!!
Let's improve the code about Alice and Bob and say the following: There are people painting bicycles and each person has his brush. After that, Alice or Bob have to paint these bikes again but they have to use the same brush that was used to paint the first time. As soon as the bike was painted by one of these people, the brush that was used must not be used again until Alice or Bob use it to paint the same bicycle the second time. Let's assume that people take 3 hours to paint the first time,alice and bob take 1 hour to paint the second time. This is my question, how can I guarantee that the same brush will be used to paint the same bike the second time
Cheers!!