DRW·Software Engineer·Online Assessment (OA)
May 2026
DRW gave me a 150-minute Codility-style OA with three independent coding problems. Each one had a different flavor: tournament simulation, robot grid coverage, and a digit-mask optimization thing. Felt like a solid filter round, not trivial but also not insane if you know your algorithms.
- Given n players in a line with distinct skill values forming a permutation, simulate a knockout tournament where adjacent pairs compete each round and the higher-skilled player advances. Return an array b where b[i] is the total number of matches player i participates in.
- For the tournament problem above, as a follow-up: instead of counting matches, return for each player the skill value of the opponent who eliminated them (and a sentinel for the champion). How does the simulation change?
- You control a robot on an R x C grid with walls and floor cells. For five different floor-cell shape variants (rectangular border only, full rectangle, dumbbell, simple path, arbitrary connected region), construct an instruction string of up to 100,000 moves that visits all required cells without stepping on walls.
- For the robot coverage problem, can you guarantee a covering walk strictly shorter than 2(V-1) moves in general, or is that bound tight? What grid configuration forces the maximum length?
- Given an array of up to 200,000 integers, find two elements with no shared decimal digits (their digit sets are disjoint) that maximize the sum. Return the maximum sum or -1 if no valid pair exists.
- Generalize the digit-disjoint pair problem to selecting k numbers that are pairwise digit-disjoint with maximum total sum. How does the approach change and what is the complexity?
- If the digit-disjoint condition were relaxed to allow sharing at most one common digit, how would you adapt the mask-based approach?
“My first instinct was to track who beats whom explicitly, which got messy fast.” The rest of the author's notes on Software Engineer interview at DRW, Online Assessment (OA) round, covers how they worked through the question, what the panel pushed back on, and what they would do differently.
View Post