Your browser (Unknown 0) is no longer supported. Some parts of the website may not work correctly. Please update your browser.


Start date: April 2, 2022, 5 p.m. UTC
Compute the minimum amount of money that you have to spend on tickets for some upcoming days.

They who control the code, control the spice. They who control the spice, control the universe!

A harvester has broken in the middle of the desert. Completing this challenge will help to fix it. Please be quick, the sandworm is on its way.

The first 3 developers to solve the challenge perfectly in the least amount of time from the start of the challenge will be added to the Codility Hall of Fame and win a $25 Amazon gift card.

Once the Muad’Dib’s challenge has ended (on April 16th), you will still be able to take the challenge and gain certificates, but you will no longer be in the running for prizes.

Don’t fear this challenge, fear is a mind-killer. Good luck!

About Codility

We help engineering leaders hire great software developers into their teams by evaluating technical skills in an unbiased way. We’re committed to levelling the playing field by building a platform that provides equal opportunity to all developers worldwide. Interested in joining us? We’re currently hiring engineers to work remotely from all over Europe.

The challenge is now over, but you may still practice on this task. Below, you can also find a video with explanation of possible solutions for the task:

View careers


2861 started 74 silver awards 241 golden awards

Hall of fame:

Sandeep Kumawat
Time: 4 minutes
Aryan C403
Time: 4 minutes
Peng Cao
Time: 5 minutes