InterviewPrepInterviewPrep· Job Insights

Codility test practice: what to expect and how to score higher

Codility is the OA of choice for European tech employers hiring in India, and if that is where your test is coming from, this guide is for you. The Codility experience is unusual — it grades you on both correctness and time complexity, and it punishes a working brute force. Below is how the platform actually scores you, what the typical Lesson 1 to 15 problems feel like, and a realistic prep plan for the week you have left.

Start a free mock interview →

How Codility scores you

Every Codility task returns two numbers when you submit: a correctness score (does your code produce the right output) and a performance score (does it stay within the required time and space complexity on very large inputs). Your final task score is the average, weighted by the recruiter’s template.

This is the single most important thing to internalise. A Python solution that is O(n²) can score 100 percent correctness and 0 percent performance, giving you 50 on a task where a friend who wrote O(n log n) got 100. Recruiters see both numbers.

Free OA practice

Sit 5 real questions right now.

Score against the same 20,000-question bank employers use, with instant explanations. No signup for the free set.

Try 5 questions free →

Why partial credit beats brute force

Codility’s hidden test cases are grouped by input size. A brute force typically passes the small and medium groups but times out on the large and huge ones. That gives you a partial score that is often good enough to clear a screening cut-off for a services role, but not enough for a competitive product-team role.

  • Read the constraints line first. If N can reach 100,000 or a million, an O(n²) approach will not finish.
  • Solve the brute force in your head, submit it if you must, then rewrite for performance.
  • Use Python’s collections.Counter, bisect, and prefix sums freely — they are all allowed.

The Codility Lessons and what they really test

Codility publishes free Lessons 1 through 17 with sample tasks in each. Recruiters overwhelmingly pull from this library or lightly reword it, so working through the lessons is the highest-return prep you can do.

  • Lessons 1-4: iteration, counting, prefix sums. Every candidate should score 100 here.
  • Lessons 5-8: sorting, stacks, queues, leader problem. This is where most Indian candidates lose 15-25 points.
  • Lessons 9-12: maximum slice, prime and composite numbers, Sieve, Euclidean algorithm. Number-theoretic and often trickier than they look.
  • Lessons 13-17: Fibonacci, greedy, caterpillar method, dynamic programming. Rarely appears in a screening OA, common in follow-up rounds.

Typical cut-offs — and what recruiters actually look at

Codility does not publish company-level cut-offs, but the industry pattern is consistent. Screening rounds for European software roles usually gate at around 120 out of 300 for junior roles and 180 to 220 for mid-level. A perfect 300 is rare and not required.

Recruiters also look at task-by-task breakdown. Two solid partial scores read better than one perfect solution and two blanks. Always attempt every task, even if you only submit a brute force in the last two minutes.

Unlock the full bank

Practice is the only thing that moves your OA score.

Get the full 20,000-question bank tagged by company and platform, plus scored AI mock interviews. Credit packs from ₹899 / $19.99.

See practice plans →

A realistic 7-day Codility plan

Focus on the platform’s own lessons — nothing else replicates the scoring model.

  • Day 1: take the free Codility demo test end-to-end. Note your correctness vs performance split.
  • Day 2: Lessons 1 to 4, all tasks, timed.
  • Day 3: Lessons 5 to 8, focus on Leader and Stack tasks.
  • Day 4: Lessons 9 to 12, particularly MaxCounters and prime-factor problems.
  • Day 5: rewrite any Day 2-4 solutions that scored below 100 performance.
  • Day 6: a fresh mock at your real test’s length.
  • Day 7: revise notes, sleep early.

Frequently asked

Does Codility give partial credit?
Yes. Every task is scored on the fraction of hidden test cases your code passes, split into correctness and performance groups. A brute force that solves the small cases still earns points, which is why submitting anything is nearly always better than submitting nothing.
What language should I pick for Codility?
Python is the safest default for readability, but be aware that Python is slower than Java or C++. For tasks with N up to a million, a well-written Python solution still scores full performance if the algorithmic complexity is right. Do not switch languages during the test.
Are Codility Lessons a good match for the real test?
Yes — probably the best match of any free resource, because recruiters draw from that same library. If you have limited time, work Lessons 1 to 12 in order rather than doing generic LeetCode. The scoring feedback also mirrors what you will see in the real test.
Can I use my own IDE during a Codility test?
You can write in a local editor and paste in, but the Codility editor supports syntax highlighting and lets you run against sample inputs. Most candidates find switching windows costs more time than it saves. It also raises the tab-switch count the recruiter sees.
What Codility score do I need for a European software role?
There is no single answer, but junior screening rounds typically clear at 40 percent of the total and mid-level rounds at 60 to 75 percent. Two partial task scores usually beat one perfect and one blank in the recruiter’s eyes, so attempt every task.

Related prep

HackerRank OA questions and practice · CodeSignal OA practice — GCA test explained · CoderPad interview and OA practice · Mercer Mettl OA — sections, timing and practice

Reading about it isn't practice.

Run a real AI mock interview built from your CV and a live job description — scored feedback on your answers, pace and filler words.

Start your free mock interview →