InterviewLegend

Older Practice Problems (2016-2025)

Alex Chen45 min readGuide updated

DRW's current coding assessment is a Codility test of custom problems, and the newest ones have their own lesson. This page is the back catalogue. Every problem here was last reported in 2025 or earlier, and some go back to 2016, so treat them as practice and expect your own test to look different.

Two kinds of problem made the cut. Three were asked in two separate interviews: a Premium question (2020 and 2021), the 1 digits in 11^N (2016 and 2019), and a Premium question (2016 and 2017). The other two were reported once but teach something no newer DRW lesson covers. The 2024 problem with two rectangles needs a monotonic stack, and the 2025 patient slots problem needs union-find.

The DRW angle
Codility grades speed as well as answers. DRW's assessment scores correctness and performance, and candidates say the examples shown are basic, so you write your own tests. Every problem below has a slow version that passes the samples, so work out the target complexity before you write code.

DRWPremium lesson · Coding round

The 5 DRW problems are below.

  1. A Premium questionCoding · Medium
  2. A Premium questionCoding · Hard
  3. A Premium questionCoding · Medium

+ 2 more in this lesson

Each with hints, the follow-up and a tested solution.

Get the DRW questions

$49 a year · all 122 companies · instant access

21,000+ candidate reports

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.

Had your DRW interview?How we research

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