Drill

Problems › C++

C++ practice problems

236 small problems drawn from the sort of code people actually write — pricing, stock, orders, logs, scheduling. Each one comes with worked examples, a hint and a solution in C++.

C++ needs a compiler and Drill does not host one yet, so these pages are for reading. Every problem is also solved in Python, which does run here.

Practise in Python instead →

billing 13

data 12

dates 8

events 12

finance 12

games 12

inventory 7

logistics 11

machines 12

monitoring 6

network 10

orders 6

patterns 47

payments 6

pricing 8

production 6

reporting 6

scheduling 10

text 10

validation 7

warmup 15