InterviewLegend

The DRW Online Assessment (Codility)

Alex Chen40 min readGuide updated
In this lesson
  • Know the 2026 DRW OA format: platform, length, time, language and proctoring
  • Answer what grades your code when you only see a couple of examples
  • Solve the three problems from an October 2026 intern OA
  • Practice the 2025 Singapore problems on simulation, grid walks and digit masks

For interns, new grads and most campus developer hires, DRW starts with an online assessment before any person talks to you. DRW's own intern page calls it a coding challenge on fundamental computer science concepts that you complete at home under timed conditions. Almost every firsthand report that names the platform says Codility, up to an October 2026 intern sitting.

The current shape is three problems in about two hours. An October 2026 intern had 115 minutes and called the set pretty easy, with plenty of time to spare. A July 2026 intern called all three medium. So plan for easy to medium, and spend your prep on clean, tested code more than on rare algorithms.

The DRW angle
The prompts are original stories, and few examples come with them. Recent DRW problems are custom scenarios like deferring expenses or running a knockout bracket. Turn the story into a plain spec, then test the corners yourself before you submit, since nothing on screen will flag them for you.

The DRW OA format in 2026

The invitation states your exact time limit, so read it before you plan anything. Recent reports put the test at about two hours. A Montreal intern in January 2026 described it as about two hours long and finished in one, and the October 2026 sitting ran 115 minutes. Reports from 2021 through 2024 mostly describe 150 minutes for three problems, so older write-ups will overstate the clock.

  • Platform: Codility. Named in almost every firsthand report from 2021 to October 2026. Two older reports, a 2022 UK intern and a 2024 New York candidate, had HackerRank instead. DRW has linked a Codility sample test from its own prep article since 2018.
  • Problems: usually three. Three problems in reports from 2021 to 2026. A 2025 new grad described one easy and two mediums.
  • Time: about two hours. The October 2026 intern OA ran 115 minutes. Reports from 2021 to 2024 mostly had 150 minutes.
  • Language: your choice. Most reports pick freely. One July 2026 intern was told the hardest problem had to be in C++, a single report so far.
  • Proctoring: camera and microphone. London and Chicago interns in November 2024 both had video and audio on, and a Chicago intern in October 2025 called it proctored.
  • Tests: write your own. Only a few basic examples are shown. Candidates say you add your own test cases to check edge inputs.

A shorter version exists too. A forum summary from late 2024 describes a newly introduced 30-minute Codility test with a single question. It shows up far less often than the three-problem sitting, so treat the long version as the default unless your invitation says otherwise. Two older reports, from 2020 and February 2024, also had one task that handed over existing code to fix or change under constraints, next to two normal problems, so be ready to read someone else's code quickly. A 2024 candidate in Canada had a 72-hour window to start the test after the invite, which gives you room to pick a quiet slot.

Is the DRW OA auto-graded?

As far as anyone can see, yes. Codility runs your code against test cases you never see, and DRW's prep article says the questions "assess both correctness and performance of your code." That means a slow brute force can lose points on large inputs even when every answer is right. Nobody has described a human reading the code afterward, and DRW doesn't publish a cutoff.

Don't read the silence afterward as a verdict. A January 2026 intern in Montreal said they aced the test and still didn't move on, and a few 2025 and 2026 candidates only heard back after chasing the recruiter. If a week goes by with nothing, send a short, polite note.

The DRW SWE intern OA

Most reports come from intern candidates, so the description above is mostly the intern test. The 2027 cycle is the one being recruited now. DRW's current Europe intern postings ask for graduation between December 2027 and August 2028, and the US postings weren't open yet at the end of November 2026. Intern postings list C++, Python, Java, C# or C as languages, so use whichever one you write fastest.

DRW SWE OA vs the quant OA

DRW sends different tests to different roles. Its intern page says the challenge is either "a quantitative challenge focused on probability and logic skills or a coding challenge on fundamental computer science concepts." Trader and researcher applicants get the probability and logic test. Software developers get the Codility coding test this lesson covers. If your invite mentions mental math or probability, you're on the quant track.

How to spend the two hours

Read all three prompts first, because they're long and story-shaped, and a 2025 new grad said the questions take a while to read. Start with the one you can see the answer to. For each problem, write down the input limits before you code, since they tell you whether brute force is safe. The October 2026 candidate said brute force passed on the first two problems. The third allowed up to 100,000 values, which rules it out.

Write your edge tests before you write the solution. For each problem, add the empty input, a single element, all-equal values and the largest size you can paste. Run them against your code before you submit. Hidden tests tend to probe cases like these, and the visible examples rarely do.

DRW publishes no rule about AI tools for candidates, and the test is proctored on camera. Assume you're working alone, with only the language docs you'd use in any timed test.

The 2026 DRW OA questions

These three come from a single October 2026 software engineer intern sitting, the newest full set on record. Each one is a single report, so read them for the style and level of the current test. Your own invite will probably tell different stories.

Minimize max minus min after three changes

The October 2026 set opened with something like this. You get an array of numbers and may change any three of them to whatever you like. The question is how small you can make the gap between the largest and smallest value.

1

Minimize Max Minus Min After Three Changes

EasyCommonly asked
Problem
You're given an integer array nums. You may change the value of at most three elements, each to any integer you like.

Return the smallest possible difference between the largest and the smallest value in the array after your changes. An array with four or fewer elements can always be made all equal, so its answer is 0.
Inputnums = [1, 5, 0, 10, 14]Output1

Change 5, 10 and 14 to 1 (or 0). The array becomes [1, 1, 0, 1, 1], and the gap is 1.

How this uses the pattern

Sort first. A changed value should land inside the range of the values you keep, so the changes only ever remove extremes. You remove three values split between the two ends.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Minimize Max Minus Min After Three Changes

Loading...
Click "Run" to execute your code
The DRW angle
The October 2026 candidate said brute force was fine here, which is useful to know for the clock. Hidden tests may still use a large array, though, and an O(n log n) sort is quick to write and safe on big inputs. Watch out for greedy thinking, where you remove the biggest outlier and then the next one. You have to compare all four ways to split three removals between the two ends.
Take it further
Change up to k elements. The same idea scales. Sort, then for every split of k removals between the low end and the high end, compare values[n - 1 - high] - values[low]. That's k + 1 candidates after one sort. When k is tiny and the array is huge, a heap pulls the k + 1 smallest and largest values in O(n log k) with no full sort.

Longest balanced substring

The second October 2026 problem was something like this. In a string of lowercase letters, call a substring balanced when every letter that appears in it appears the same number of times. Find the longest one. The candidate said brute force passed here too, which makes an O(n²) scan with a neat check the right first answer.

2

Longest Balanced Substring

MediumCommonly asked
Problem
You're given a string s of lowercase English letters. A substring is balanced when every letter that appears in it appears the same number of times. Letters that don't appear in the substring don't count.

Return the length of the longest balanced substring of s. Any single letter is balanced, so the answer is at least 1 for a non-empty string. Return 0 for an empty string.
Inputs = "aabbc"Output4

"aabb" has two a and two b, so it is balanced. Adding the c breaks it.

How this uses the pattern

Fix a start and grow the end one letter at a time, keeping letter counts. A window is balanced exactly when its length equals the number of distinct letters times the highest count.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Longest Balanced Substring

Loading...
Click "Run" to execute your code
The DRW angle
This is an original DRW prompt with no close LeetCode twin, and the October 2026 candidate said brute force passed. The time goes into the balance check. Comparing all 26 counts at every step works but is clumsy to write. Keep the distinct letter count and the top count as you grow the window, and one multiplication answers the question. The code gets short enough to write right the first time.
Take it further
Make it linear when only a, b and c appear. Try each of the seven non-empty letter subsets. Inside a stretch that holds only that subset's letters, a window is balanced when each count minus the first letter's count is the same at both ends. Store the first index of each difference key and the longest window falls out in one pass. The walkthrough codes it.

Fewest expenses to defer to year end

The third October 2026 problem is where input size starts to matter, with up to 100,000 transactions. It goes something like this. A year of transactions arrives in order, and the balance may never go negative. You can push any expense to the end of the year. How few do you need to move?

3

Fewest Expenses to Defer to Year End

MediumCommonly asked
Problem
A company's transactions for the year arrive in order in transactions. Income is a positive number and an expense is a negative number. The balance starts at 0 and must never drop below 0 at any point.

You may move any expense to the end of the year, after every other transaction. The total of all transactions is at least 0, so moved expenses can always be paid at the end. Return the smallest number of expenses you need to move. The array holds up to 100,000 values.
Inputtransactions = [10, -20, 15, -5]Output1

The balance hits -10 at the second step. Moving the -20 to the end keeps it at 10, 25, 20, then 0 after the deferred expense.

How this uses the pattern

Walk the year with a running balance and a min-heap of expenses you paid. When the balance goes negative, take back the largest expense paid so far and count one move.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Fewest Expenses to Defer to Year End

Loading...
Click "Run" to execute your code
The DRW angle
This is a scheduling greedy wrapped in an accounting story, and it's close to a known problem about keeping a prefix sum non-negative. With up to 100,000 values, rescanning on each dip is too slow, which is where the performance half of the grading bites. The heap version is short. Practice saying why taking back the largest expense is safe. Once you can, the greedy stops feeling like a lucky guess.
Take it further
Return which expenses to move. Push each expense into the heap as an (amount, index) pair. When you pop, record the index, and return the sorted list of indices at the end. If two expenses tie in size, either choice gives the same count, so state your tie rule before you code it.

Older problems (2025)

These three come from one October 2025 Codility OA for a C++ software engineer internship in Singapore, 150 minutes for three problems. Each is a single report and over a year old, so treat them as practice rather than a forecast. They're here because they teach skills the 2026 set doesn't touch: simulating a process round by round, walking a grid, and packing digits into a bitmask.

Knockout tournament match counts

4

Knockout Tournament Match Counts

EasyRarely asked
Problem
abilities lists n players in their starting order. The abilities are the distinct numbers 1 to n, and n is a power of two, up to 200,000.

In each round, players are paired left to right: first with second, third with fourth, and so on. The higher ability wins, and the winners keep their order for the next round. The tournament ends when one player is left.

Return an array where entry i is the number of matches player i played.
Inputabilities = [5, 1, 3, 2, 4, 6, 8, 7]Output[3, 1, 2, 1, 1, 2, 3, 1]

Round one sends 5, 3, 6 and 8 through. Then 5 and 8 win, and 8 beats 5 in the final, so both finalists played three matches.

How this uses the pattern

Simulate the bracket. Keep a list of the indices still alive, pair them two at a time, add one match to both, and keep the winner. Each round halves the list.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Knockout Tournament Match Counts

Loading...
Click "Run" to execute your code
The DRW angle
This is pure simulation, the problem the 2025 candidate met first. With 200,000 players it looks like it needs something clever, but the rounds shrink by half, so the whole bracket is under 2n match steps. The thing that matters is tracking original indices rather than abilities, since the answer is reported by starting position. A later write-up of this problem also asks who knocked out each player.
Take it further
Who eliminated each player? Return, for each player, the ability of the opponent who beat them, with 0 for the champion. It's the same loop with one more array. When you pick the winner of a pair, write the winner's ability into the loser's slot. The walkthrough shows the change.

Robot path planning on a walled grid

The second problem in the 2025 Singapore set was the long one, a robot puzzle in five subtasks. Each asked for a string of moves of at most 100,000 characters that visits a set of empty cells. The subtasks grew from walking only the border of a rectangle, to covering a full rectangle, two rectangles joined by one cell, a single path, and finally any connected shape.

5

Robot Path Planning on a Walled Grid

MediumRarely asked
Problem
grid is a list of strings forming an R by C board, with R and C between 3 and 50. # is a wall, . is an empty cell and * is the robot's empty starting cell. The outer ring is all walls, and every empty cell can be reached from the start.

The robot moves one cell per command: ^ up, v down, < left, > right. It may never step into a wall, and it doesn't have to return to the start.

Return the commands of a depth-first walk that visits every empty cell. From each cell, try the directions in the order up, down, left, right, and step into the first unvisited empty neighbor. When a cell has none left, step back the way you came. Stop as soon as every empty cell has been visited.
Inputgrid = ["#####", "#*..#", "#...#", "#####"]Output"v>^>v"

From the top-left corner, up is a wall, so the robot goes down, then right, up, right and down. All six cells are visited.

How this uses the pattern

Run an iterative depth-first search with a stack of (cell, the move that led here, next direction to try). A new cell appends its arrow; a finished cell appends the reverse arrow and pops.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Robot Path Planning on a Walled Grid

Loading...
Click "Run" to execute your code
The DRW angle
The real version accepted any valid sequence under the length cap. Fixing the order here makes the answer checkable, and the walk is what solves the last subtask. A full DFS walk steps into each cell once and back at most once, so it stays under 2 times the cell count. That's about 4,600 moves on a 50 by 50 board, far inside the cap. The earlier subtasks reward simpler patterns, like a snake sweep across a rectangle.
Take it further
Walk only the border of a rectangle. The first subtask starts the robot in the top-left corner of a rectangular room and asks for the border cells only. No search is needed. Measure the room's width and height, then go right, down, left and up along the edges, stopping one cell short of the start. The walkthrough codes it, including the one-row and one-column rooms.

Maximum sum of two numbers with no shared digit

6

Maximum Sum of Two Numbers With No Shared Digit

MediumRarely asked
Problem
You're given an array nums of up to 200,000 non-negative integers. Pick two different positions whose numbers have no decimal digit in common.

Return the largest possible sum of such a pair, or -1 if no pair qualifies. For example, 12 and 34 share no digit, while 11 and 10 share a 1.
Inputnums = [12, 34, 56, 13]Output90

34 and 56 use the digits 3, 4, 5 and 6 with no overlap, and no other valid pair sums higher.

How this uses the pattern

Turn each number into a 10-bit mask of its digits. Keep the largest number for each mask, then try every pair of masks whose AND is zero.

Write it here, or go full screen with the problem, hints and solution beside the editor.

Maximum Sum of Two Numbers With No Shared Digit

Loading...
Click "Run" to execute your code
The DRW angle
With 200,000 numbers, trying every pair is 20 billion checks, so the brute force fails the performance tests. The insight is that only 1,024 digit sets exist. Once each number becomes a 10-bit mask, you keep the best value per mask and pair masks instead of numbers. This digit-to-bitmask move is the reason the 2025 problem is worth an hour, since it turns up again whenever a problem says "no shared character."
Take it further
Count the qualifying pairs instead. Keep a count per mask in place of the best value. Two different disjoint masks contribute count[a] times count[b]. A mask can't pair with itself, because every non-empty mask shares a digit with itself. The loop over 1,024 masks stays the same, and the totals can pass 10^10, which is fine in Python but needs a 64-bit integer elsewhere.

Common questions about the DRW OA

How hard is the DRW OA?

Easy to medium in recent reports. The October 2026 intern called it pretty easy and finished with time to spare, while a July 2026 intern called all three problems medium. Some older sittings, from 2022 to 2024, were described as hard, so be ready for one tougher problem.

What platform does DRW use for the online assessment?

Codility, in almost every firsthand report from 2021 to 2026. Two older reports, from 2022 and 2024, had HackerRank instead. DRW's own prep article links a Codility sample test, and it's worth doing once to learn the editor before the real thing.

Is the DRW OA proctored?

Yes, in recent cycles. Interns in London and Chicago in November 2024 had camera and microphone on, and a Chicago intern in October 2025 described a proctored OA. Set up a quiet room and a working webcam before you start the clock.

What comes after the DRW OA?

For campus hires, a 45-minute Zoom interview with a developer, then a final round. The process lesson covers each step, and the next lesson works more OA-style problems on strings, digits and running balances.

Key Takeaways

  • ✓The DRW OA is a proctored Codility test, usually three problems in about two hours, in your own language.
  • ✓Codility checks correctness and performance on hidden tests, so write your own edge tests before submitting.
  • ✓The 2026 problems are custom stories over sorting, counting and a greedy heap. Turn each story into a plain spec first.
  • ✓The 2025 set adds bracket simulation, an iterative DFS walk and digit bitmasks, all worth one timed practice run.
DRW interview guide

Know what DRW asks before you walk in.

29 coding · 3 system design · 18 behavioral questions

Get Premium$49 a year · Instant access
Or start freeNo card.

Get their questions first.

What DRW Tests in CodingHad your DRW interview?How we research

InterviewLegend is independent and not affiliated with or endorsed by any company it covers.