Ad
  • Default User Avatar

    The queue you've written is correct, but each clone and the original drinks only one can, so all the "sheldons" together would drink 4 cans.

  • Default User Avatar

    The tests don't use the order, or the specific value, of thread IDs. They just use thread IDs to identify how many threads were used, and which numbers were grouped together in the same thread. The only thing it relies on is that each thread has a unique ID, which is guaranteed.

  • Custom User Avatar

    thanks for helping me improve my code! :) does the // mean that python3 is used?