Skip to main content
Imperial College London Computer Science interview preparation

Free Interview Resources

Imperial College London Computer Science Interview Questions

Free practice questions, preparation advice, and expert insights for Computer Science interviews at Imperial College London.

No interview requirement · TMUA requiredFormat

Sample Imperial College London Computer Science Interview Questions

Real Computer Science interview questions in the style Imperial College London asks. Try answering each one aloud before you reveal the hint.

01

You have a 3-litre jug and a 5-litre jug, an unlimited water supply and no other measuring marks. Describe a procedure that leaves exactly 4 litres in the 5-litre jug, and convince me it terminates.

Problem-Solving

entry

Hint

Treat each jug state as a pair and search reachable states; the key move is repeatedly filling one jug and pouring into the other until it overflows. A strong candidate frames it as a small state-transition graph rather than trial and error.

02

Given an unsorted array of n distinct integers, how would you find the two elements whose difference is smallest? Give a naive method first, then improve it, and state the cost of each.

Problem-Solving

entry

Hint

Start with the O(n^2) all-pairs comparison, then realise that after sorting the closest pair must be adjacent, giving O(n log n). Justify why non-adjacent pairs cannot beat the best adjacent gap.

03

You are given a stream of numbers one at a time and can store only a fixed amount of memory. How would you return a uniformly random one of the n numbers seen so far, at any point, without knowing n in advance?

Problem-Solving

mid

Hint

This is reservoir sampling: keep the current pick with probability 1/i when the i-th item arrives. Ask the candidate to prove by induction that every item ends up with probability 1/n.

04

I have a chessboard with two diagonally opposite corner squares removed, leaving 62 squares, and a set of dominoes each covering exactly two adjacent squares. Can the board be tiled completely? Prove your answer.

Problem-Solving

mid

Hint

Colour the board like a chessboard: each domino covers one black and one white square, but the two removed corners share a colour. The parity mismatch makes a full tiling impossible.

05

Design a data structure that supports push, pop and retrieving the current minimum, all in O(1) time. How do you handle duplicate minima?

Problem-Solving

hard

Hint

Keep an auxiliary stack of running minima alongside the main stack. Probe whether the candidate pushes onto the min-stack on equal values so that duplicate minima pop correctly.

Structured interviews that combine technical problem-solving with motivation and personal statement discussion.

Imperial interviews vary by department. Engineering and Computing tend to be technical with problem-solving elements. Medicine uses a Multiple Mini Interview (MMI) format with several short stations. Most interviews last 15-30 minutes and may include a presentation or group exercise.

15-30 minutes (Medicine MMI: 5-8 minutes per station)1-2 interviews (Medicine: 6-8 MMI stations)
  • -Imperial interviews are more structured than Oxbridge and may include specific scoring criteria.
  • -For Engineering and Computing, expect to solve problems on a whiteboard or paper in front of the interviewer.
  • -For Medicine, practise MMI-style ethical scenarios and communication stations.
  • -Be prepared to discuss your personal statement in detail, particularly any projects or work experience mentioned.

Invitation → Decision: the interview timeline

Interview Invitation

Late Nov

Arrival to Interview

Early Dec

Technical Question

Mid Dec

Decision

Early Jan

Conceptual Understanding

5 questions
01

What does it mean to say an algorithm is O(n log n)? Why do we deliberately ignore constant factors and lower-order terms in that notation?

entry

Hint

Push for the formal definition: there exist c and n0 such that the running time is bounded above by c times n log n beyond n0. A good answer distinguishes asymptotic growth from real-world constants and explains why the abstraction is useful.

02

Explain the difference between a stack and a queue. Give one concrete situation where using the wrong one would produce clearly wrong behaviour.

entry

Hint

LIFO versus FIFO. A strong example is undo history (needs a stack) versus a print job or breadth-first traversal (needs a queue); getting these swapped reverses the intended order.

03

Why is binary search O(log n), and what property must the input have for it to work at all? What happens to its guarantees if that property is only approximately true?

mid

Hint

Each comparison halves the search space, so the depth is log base 2 of n. The array must be sorted on the search key; if ordering is violated the invariant breaks and correctness is lost, not just performance.

04

What is recursion, and how is it related to mathematical induction? Take the factorial or Fibonacci definition and show me the correspondence.

mid

Hint

A recursive definition mirrors a base case plus an inductive step. The candidate should see that proving a recursive function correct is essentially an induction proof, and mention the base case as both the termination guard and the induction anchor.

05

Explain the difference between a problem being decidable and a problem being tractable. Where does the halting problem sit, and where does a problem like Boolean satisfiability sit?

hard

Hint

Decidability is about whether any algorithm exists at all; tractability is about whether one runs in polynomial time. The halting problem is undecidable; SAT is decidable but believed intractable (NP-complete), which is a different kind of difficulty.

Personal Statement & Motivation

5 questions
01

Your statement mentions a programming project you built independently. Talk me through a design decision where you chose one approach over another, and what you would change if you rebuilt it now.

entry

Hint

Reward a specific trade-off (data structure, library, architecture) with honest reflection. Weak answers describe features; strong answers reason about alternatives and their consequences.

02

You say you enjoy mathematics as well as computing. Give me an example of a mathematical idea that changed how you think about a computing problem.

entry

Hint

Look for a genuine link, for example modular arithmetic behind hashing, graphs behind networks, or logic behind circuit design. The point is showing that maths is a tool they actually reach for.

03

You listed a book or article about computer science that you read beyond the syllabus. What claim in it did you find least convincing, and why?

mid

Hint

This tests critical reading rather than name-dropping. A strong candidate can summarise an argument and then push back on it with a reason, not just praise the author.

04

You mention teaching yourself a topic outside your school curriculum. What was the hardest concept to grasp, and what finally made it click?

mid

Hint

Probe metacognition: how they diagnose their own misunderstanding and what resource or reframing resolved it. This reveals independent-learning ability that a mathematically demanding course demands.

05

Imperial's degree is heavily theoretical and proof-oriented, not just coding. What in your experience so far suggests you will enjoy the mathematical side, not only building things?

hard

Hint

Test course fit honestly. The best answers cite a moment of pleasure in abstraction or proof, and acknowledge realistically that theory and engineering are different skills they are prepared to develop.

Curveball & Lateral Thinking

3 questions
01

How many piano tuners are there in London? Reason it out loud; I care about the method, not the exact number.

mid

Hint

A classic estimation problem: build up from population, pianos per household, tunings per year, and a tuner's annual capacity. Reward explicit assumptions and a sanity check at the end.

02

If I gave you access to every book ever written as plain text, how would you decide whether two of them were written by the same author, without being told anything about the authors?

mid

Hint

Look for feature extraction: word-length distributions, function-word frequencies, sentence structure, then a similarity or clustering step. The insight is turning a fuzzy question into measurable quantities.

03

Suppose you could add one extra instruction to a computer's processor that does not currently exist. What would you choose, and what would break or become harder as a result?

hard

Hint

There is no right answer; the interviewer is testing whether the candidate reasons about trade-offs, for instance an instruction that speeds one task but complicates the hardware, security, or compiler. Reward awareness that every abstraction has a cost.

16+

Confirm the no-interview route and the selection tasks

  • Read the official Computing BEng course page for the current entry year.
  • Confirm the TMUA requirement and note the available sitting windows.
  • Create a preparation plan that prioritises TMUA and the UCAS application rather than interview rehearsal.

12

Build TMUA Paper 1 fluency

  • Work through official TMUA preparation materials without a calculator.
  • Review algebra, functions, inequalities, sequences, graphs and exact arithmetic.
  • Keep an error log that records the missed idea, not just the missed answer.

8

Strengthen TMUA Paper 2 reasoning

  • Practise mathematical reasoning, logic, conditionals and proof-style multiple-choice questions.
  • Explain each solution in words before checking the answer key.
  • Use supplementary logic videos only after official materials have set the baseline.

4

Move into timed mixed practice

  • Sit full 75-minute paper sections under realistic timing.
  • Mark patterns in wrong answers: misread question, weak method, time pressure or arithmetic slip.
  • Revisit topics that repeatedly cost time or accuracy.

2

Finalise application evidence and test routine

  • Check that the personal statement answers the structured UCAS prompts clearly.
  • Do short non-calculator refreshers rather than cramming new topics.
  • Confirm test logistics, permitted items and timing rules.

Unlock the full guide

  • The full Computer Science question bank, by category, with hints
  • A week-by-week preparation roadmap
  • The common mistakes that cost offers — and how to avoid them

Free Resource

The Complete Imperial College London Computer Science Interview Guide

Enter your email to unlock the full question bank, worked approaches, a week-by-week prep roadmap, and the mistakes that cost offers.

No spam. Unsubscribe anytime.

Watch & Learn

Imperial College London Computer Science Interview Videos

DoC Lab Tour - featuring Imperial College computing undergraduate students Freddy and Jian

Helps applicants understand the Department of Computing learning environment and student perspective.

Imperial College campus tour - featuring computing undergraduate student Timothy

Useful for context on Imperial's campus and student life without presenting it as admissions evidence.

Application offer advice - featuring Imperial College computing undergraduate student

Applicant-facing context from the department's YouTube channel; use alongside official course pages.

Master IF and ONLY IF for TMUA & STEP (Logic Explained)

Targets a common TMUA Paper 2 logic weakness; use as supplementary, not official, preparation.

Welcome to Imperial - 2025

General institutional context for applicants considering Imperial. Published September 2025, current for 2027 entry cycle.

All videos are the property of their respective creators.

Frequently Asked Questions

No verified interview requirement was found for Imperial Computing BEng. The current 2027 UCAS profile lists TMUA as the additional entry requirement, so applicants should not treat interview preparation as the centre of their admissions preparation.
Applicants need the Test of Mathematics for University Admission (TMUA). Imperial's own admissions-test page states Department of Computing applicants must take TMUA, and the UCAS 2027 profile lists TMUA as an additional entry requirement.
UAT-UK lists TMUA Sitting 1 for 12-16 October 2026 and Sitting 2 for 4-8 January 2027. Applicants should check which sitting applies to their choices and the live booking deadlines.
TMUA lasts 2 hours 30 minutes and has two 75-minute multiple-choice papers: Applications of Mathematical Knowledge and Mathematical Reasoning. Each paper has 20 questions, and calculators and dictionaries are not allowed.
The starting course headline states A*A*A with A* in Mathematics. The current 2027 UCAS profile lists A*A*A-A*AAA, including A* in Mathematics plus either A*A in two further subjects or AAA in three further subjects. Applicants should use the latest live course wording when applying.
The current 2027 UCAS profile lists 41 points overall, including 7 in HL Mathematics and 7 in another relevant HL subject. It states that either HL Mathematics Analysis and Approaches or HL Applications and Interpretation is accepted with no preference.
For 2027 entry, use the structured UCAS personal-statement prompts: why the course or subject, how qualifications and studies prepared the applicant, and what experiences outside education helped prepare them. For Computing, examples should connect mathematical reasoning, algorithms, systems, projects and independent learning.
Imperial has contextual admissions. Its guidance says eligible applicants can receive a guaranteed offer at the department's minimum entry level if they meet the relevant academic, personal-statement and admissions-test/interview criteria where used.
Yes. International applicants use UCAS for undergraduate admission and should also check Imperial's international-student guidance for fee status, visas, CAS, English language and regional entry-requirement information.
They should prioritise TMUA preparation, academic performance, the structured personal statement and course fit. General technical discussion practice can still be useful, but it should not be presented as preparation for an official Imperial Computing interview.

Get Expert Imperial College London Computer Science Interview Coaching

1-to-1 mock interviews with Imperial graduates who know exactly what Computer Science interviewers look for.

Book a Free Session