Citi Codility test
Some Citi Java teams in the US and Canada use a Codility test instead of the Karat screen. It's either three timed tasks in about an hour, often one algorithm, one Spring Boot REST endpoint and one JUnit test task, or a live 2-hour Spring Boot debugging session.
Questions candidates were asked
- Sign of the Product of an ArrayJunior
- Spring Boot REST endpoint that returns the total items a user bought from an orders serviceComing soonAll levels
- Write JUnit tests for a string inverter, including null and empty inputsComing soonAll levels
- Password rule validatorComing soonAll levels
- Fix failing Spring Boot tests caused by subtle bugsComing soonAll levels
What it tests
- Algorithms in Java
- A working Spring Boot REST endpoint
- Unit tests that cover edge cases
Codility test round guide
Updated December 2026. Based on 5 sources, including first-hand candidate reports.
How the round runs
- Task 1An algorithm problem, usually easy, such as the sign of the product of an array.
- Task 2A Spring Boot REST endpoint, usually medium, checked for the right annotations and wiring.
- Task 3JUnit tests for a small method, which must pass on a correct version and fail on broken ones.
Who gets Codility instead of Karat
Most experienced hires at Citi get the Karat screen. Some Java teams in the US and Canada use Codility instead, and one Toronto candidate who took it in 2025 went on to get an offer. Early career online tests in some regions also run on Codility or HackerRank, usually with two array or string problems, a SQL query and computer science multiple choice questions.
The two versions
- Automated test, about an hour: three tasks. Either three algorithm problems, or one algorithm, one Spring Boot REST endpoint and one JUnit test task. Guides say the algorithm-only version lets you pick your language.
- Live session, up to 2 hours: you work inside a Spring Boot codebase, fix bugs, write new JUnit tests for your fix and answer theory questions along the way. Guides describe it as harder than the Karat screen.
The Spring Boot task
One candidate in 2026 had to build a /users/{username}/items/total endpoint that returns how many items a user bought, using an external orders service. The checks were about Spring wiring: a @Configuration class with the right component scan, @Service on the service, @RestController rather than @Controller on the controller, and constructor injection.
The JUnit task
The same candidate wrote JUnit 4 tests for a string inverter. The tests had to pass on a correct implementation and fail on broken ones, so they needed every edge case: null input, an empty string, a single character and several characters.
How hard the Citi Codility test is
Each task is easy to medium on its own. The algorithm task in the 2026 report was the sign of the product of an array, where the catch is overflow. The difficulty is fitting three different tasks into about an hour, and knowing Spring well enough to wire an endpoint without looking it up.
A weaker score isn't always the end. The 2025 Toronto candidate felt they did badly and still got an offer.
What happens after
Your submission doesn't disappear after grading. In later live rounds, interviewers often open your Codility code and ask you to explain it, defend your choices and change it for a new requirement. Write it as if you'll have to walk someone through it.
What a strong answer looks like
- Splits the hour across the three tasks instead of perfecting the first.
- Thinks about overflow before multiplying values in a large array.
- Uses the standard Spring annotations and constructor injection without looking them up.
- Covers null, empty, single and multiple inputs in the tests.
- Writes code they can explain and extend in the next round.
Common mistakes
- Running out of time on the algorithm and leaving the Spring or JUnit task unfinished.
- Using @Controller where the task expects @RestController, or field injection where it checks for constructor injection.
- Tests that pass on a broken implementation because they miss an edge case.
- Not reading the error messages. Candidates say they point straight at the problem.
Tips from candidates
- Cover null, empty and single-element inputs in testing tasks.
- Watch for overflow when multiplying values in large arrays.
Frequently asked questions
How hard is the Citi Codility test?
Each task is easy to medium. Candidates say the hard part is fitting an algorithm, a Spring Boot endpoint and a set of JUnit tests into about an hour.
What is in the Citi Codility test?
Three tasks: either three algorithm problems, or one algorithm, one Spring Boot REST endpoint and one JUnit test task. Some teams run a live 2-hour Spring Boot debugging session instead.
How long is the Citi Codility test?
About an hour for the automated version and up to 2 hours for the live Spring Boot session.
Which Citi teams use Codility instead of Karat?
Some Java teams in the US and Canada. Most other experienced hires get the Karat screen.
Can I choose my language in the Citi Codility test?
Guides say the algorithm-only version lets you choose. The Spring Boot and JUnit tasks are in Java.
Do I need a perfect score on the Citi Codility test?
Citi doesn't publish a pass mark. One candidate felt they did badly and still got an offer, but finishing all three tasks is the safest plan.
Will Citi ask about my Codility answers later?
Often, yes. Interviewers in later rounds open your submission and ask you to explain it and change it for a new requirement.
How do I prepare for the Citi Codility test?
Practise easy to medium array and string problems, build a small Spring Boot REST endpoint from scratch, and write JUnit tests that cover null, empty and single-item inputs.