Keep your most popular rides running, close the least popular ones. Every visit is O(1) β the Ride Registry (Hash Map) always knows exactly where a ride is on the queue (Doubly Linked List).
Timeline (last 8 visits)
Controls
π ParkFront of the queue is my hottest ride. Fall to the back, and you're next to close.
π RegistrySay a ride's name and I zap a lightning bolt straight to it β I never walk the queue.