Codility Instructions – Internships


– Four exercises are available for a total time of 3 hours. The applicant is expected to complete at least 3 exercises of his choice. Obviously, if time allows, you are encouraged to complete all the exercises.

– Advanced exception/error handling is outside the scope of this test. Inputs range is specified in each exercise, it is unnecessary to handle any other cases.

– Favor C++ over any other language if C++ is part of your skills.

– Using available online resources (documentation, etc.) is encouraged but you may not get help from another person. This test is designed to evaluate your personal skills.


Evaluation factors

Correctness: Codility will evaluate your code according to several units tests. Consider all edge cases.
Speed: favor algorithm with the following complexity: O(1), O(log n), O(n) or O(n.log n). Avoid O(n2) or worse as much as possible.

– Readability: code organization, indentation, use of separate functions when appropriate, etc.

Comments: do not hesitate to comment your code, especially in the following situations: non-trivial operations (why did you write this code?), potential improvements which you couldn’t implement due to time constraints. You may also add comments in uncompleted exercises to explain how you would have approached them.



If necessary, favor quality over quantity. Before starting, you should read all four exercises and pick those that suit you best.

– Before you start the test, have an empty solution ready in order to debug issues hard to detect with naked eyes. Codility will not allow you to run step by step or place breakpoints into your code.

– You may use the Standard C++ (or C) Library but keep in mind that the point of this test is to demonstrate your programming skills. Figuring out the proper amount of handwritten code versus high-level functions is up to you. Commenting each use of a high-level function is highly recommended.

Reason: In a real world, cross-platform working environment, high-level functions are not always available or appropriate.

Note: using qsort (C) or std::sort (C++) is acceptable.

– Use the “Add test case” functionality at the bottom left of the test page. However, keep in mind that Codility will only verify the absence of run-time errors but will not check for correctness on your custom test cases.

– You may create new functions to improve readability or avoid code duplication.

– For those not familiar with the Codility environment, we suggest trying out the demo before starting the test.

Nous avons mis à jour notre politique de confidentialité ainsi que le traitement de l’information que nous collectons. Consultez la révision de la politique ici. En poursuivant l’utilisation du site web d’Activision, ses produits et services, vous reconnaissez ladite politique. Le site web utilise des fichiers témoins « Cookies » dans le but d’adapter le contenu et le marketing ainsi que pour améliorer et ajuster les expériences des utilisateurs. En continuant de parcourir le site, vous acceptez que nous utilisions des fichiers témoins. Pour en savoir plus, consultez notre politique sur les cookies ici. Plus d’informations

Les paramètres des cookies sur ce site sont définis sur « accepter les cookies » pour vous offrir la meilleure expérience de navigation possible. Si vous continuez à utiliser ce site sans changer vos paramètres de cookies ou si vous cliquez sur "Accepter" ci-dessous, vous consentez à cela.