Codility Solutions

On this page I am sharing my solutions to the problem sets. They can be found here. Enjoy and share your comments!

1) Time Complexity

2) Counting Elements

3) Prefix Sums

4) Sorting

5) Stacks and Queues

6) Leader

7) Maximum Slice Problem

8) Prime and composite numbers

9) Sieve or Eratosthenes

10) Euclidean Algorithm

11) Fibonacci Numbers

12) Binary Search

13) Caterpillar method

14) Greedy algorithms

15) Dynamic Programming

16) Future Training

X) Challenges

Based on the Codility Terms of Service it is allowed to share training solutions and solutions to past challenges.

8.1.  Any Task, statement or information on the Site (including Tests Sessions and Test Session results) is confidential information. You agree not to:

(a)   disclose, publish or reproduce (including posting on any webpage or blog) such information; or

(b)   disclose to others details of a recruitment Task, ongoing monthly Challenge or ongoing competition Task (including details relating to its completion).

8.2.  This clause does not apply to: Training section of Codility service, Training Tasks and Past Challenges, their solutions and assessment results.

How To Request A Missing Solution

If you need help with a challenge I have not posted, feel free to reach out via the Disqus comment system or the form below. If you fill out the form, I will reach out to you once I have posted the solution.

As a personal principle, I do not post solutions to ongoing challenges. It will get posted once the challenge is officially over.