Simulation Publish on: 2025-05-24 Classify at: Leetcode Words: 25 Read:≈ 1mins Views: 755. Pour Water Time Order 2534. Time to Pass a Gate The simulation ends when everyone has entered/exited.Time is placed in the inner loop.