Back
Close
  • 46

What will I learn?

This puzzle makes you grasp the basics of queues and cycles of queues. You need to optimize your code to process a big dataset.

External resources

FIFO Queue

Learning Opportunities

This puzzle can be solved using the following concepts. Practice using these concepts and improve your skills.

Statement

The goal of this puzzle is to simulate the ride of a queue of people on a rollercoaster. The queue forms a cycle so there is something to exploit there in order to speed up your simulation.

A higher resolution is required to access the IDE

Story

We all like roller coasters. But there are people who like people who like roller coasters. Today, you are one of them, as you have to check the profit of an attraction in an amusement park. Let's hope there will be more ups than downs.