This is the practice competition for the 2019 Code Kerfuffle.

These questions are similar to the questions we will use for the real competition. These cover a wide range of algorithm and data structure topics. Most questions have a naive solution, but can be solved more efficiently. The more efficient solution will be neccessary to pass all the test cases.

Hints

Pick your most productive language, not the "fastest". (ie Python is usually a better choice than C)

All questions are worth the same amount of points, so solve the easiest questions first.

Run the sample test cases first by clicking 'Run Code'.

Solutions

These questions were used in our 2018 Lucid Programming Competition, view the solutions here if you get stuck: LPC 2018