Problem database last updated: June 20, 2025

DDeloitte logo

Deloitte Coding Interview Questions

26 problems · 13 Easy, 12 Medium, 1 Hard · Ranked #74 of 458

Difficulty breakdown

13 Easy

50% · avg 23%

12 Medium

46% · avg 59%

1 Hard

4% · avg 18%

Top topics

array
42.3%
string
23.1%
dynamic-programming
23.1%
database
19.2%17.1x
divide-and-conquer
11.5%2.8x
two-pointers
11.5%

Interview profile

Based on 26 reported problems, Deloitte interviews are easier than average - only 4% Hard compared to 18% across all companies.

Compared to the industry average, Deloitte puts unusual emphasis on database (19.2% of problems, 17.1x the industry average), divide-and-conquer (11.5% of problems, 2.8x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (42.3%), string (23.1%), dynamic-programming (23.1%), database (19.2%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 26 problems

Two Sum

Solve

Given an array of integers nums and an integer target, return the indices of the two numbers that add up to target.

EasyVery Likely
arrayhash-map

Merge k Sorted Lists

Solve

You are given an array of k linked-lists lists, each linked-list is sorted in ascending order.

HardVery Likely
linked-listdivide-and-conquerheap-priority-queue

Valid Parentheses

Solve

Given a string s containing just the characters '(', ')', '{', '}', '[' and ']', determine if the input string is valid.

EasyVery Likely
stringstack

Container With Most Water

Solve

You are given an integer array height of length n. There are n vertical lines drawn such that the two endpoints of the ith line are (i, 0) and (i, height[i]).

MediumVery Likely
arraytwo-pointersgreedy

Palindrome Number

Solve

Given an integer x, return true if x is a palindrome, and false otherwise.

EasyVery Likely
math

Longest Palindromic Substring

Solve

Given a string s, return the longest palindromic substring in s.

MediumVery Likely
two-pointersstringdynamic-programming

Second Highest Salary

Solve

Table: Employee

MediumVery Likely
database

Managers with at Least 5 Direct Reports

Solve

Table: Employee

MediumLikely
database

Climbing Stairs

Solve

You are climbing a staircase. It takes n steps to reach the top.

EasyLikely
mathdynamic-programmingmemoization

Rising Temperature

Solve

Table: Weather

EasyLikely
database

Reverse Integer

Solve

Given a signed 32-bit integer x, return x with its digits reversed. If reversing x causes the value to go outside the signed 32-bit integer range [-231, 231 - 1...

MediumLikely
math

Majority Element

Solve

Given an array nums of size n, return the majority element.

EasyLikely
arrayhash-tabledivide-and-conquer

Kth Largest Element in an Array

Solve

Given an integer array nums and an integer k, return the kth largest element in the array.

MediumLikely
arraydivide-and-conquersorting

Coin Change

Solve

You are given an integer array coins representing coins of different denominations and an integer amount representing a total amount of money.

MediumLikely
arraydynamic-programmingbreadth-first-search

Reverse Linked List

Solve

Given the head of a singly linked list, reverse the list, and return the reversed list.

EasyLikely
linked-listrecursion

Pascal's Triangle

Solve

Given an integer numRows, return the first numRows of Pascal's triangle.

EasyLikely
arraydynamic-programming

Edit Distance

Solve

Given two strings word1 and word2, return the minimum number of operations required to convert word1 to word2.

MediumLikely
stringdynamic-programming

Max Consecutive Ones

Solve

Given a binary array nums, return the maximum number of consecutive 1's in the array.

EasyLikely
array

Find Customer Referee

Solve

Table: Customer

EasyLikely
database

Longest Substring Without Repeating Characters

Solve

Given a string s, find the length of the longest substring without duplicate characters.

MediumLikely
hash-tablestringsliding-window

Merge Intervals

Solve

Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cove...

MediumLikely
arraysorting

Best Time to Buy and Sell Stock

Solve

You are given an array prices where prices[i] is the price of a given stock on the ith day.

EasyLikely
arraydynamic-programming

Minimum Time to Repair Cars

Solve

You are given an integer array ranks representing the ranks of some mechanics. ranksi is the rank of the ith mechanic. A mechanic with a rank r can repair n car...

MediumLikely
arraybinary-search

Article Views I

Solve

Table: Views

EasyLikely
database

Longest Common Prefix

Solve

Write a function to find the longest common prefix string amongst an array of strings.

EasyLikely
arraystringtrie

Reverse Words in a String

Solve

Given an input string s, reverse the order of the words.

MediumLikely
two-pointersstring

How often are these problems asked?

Frequency scores are based on crowdsourced interview reports. A higher score means the problem has been reported more often in recent Deloitte interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Deloitte coding interview

Deloitte interviews focus heavily on array, string, dynamic-programming problems. If you're short on time, these are the categories to prioritize. The problems on this page are sorted by frequency, so start from the top and work your way down.

Beyond solving problems, practice explaining your approach. Deloitte interviewers care about your thought process - how you break down a problem, consider edge cases, and evaluate tradeoffs between solutions. A clean O(n) solution you can explain clearly beats an O(log n) solution you can't articulate.

Looking for more companies? Browse all 458 companies in our directory, or sharpen your fundamentals with our free data structure visualizers and AI-powered DSA tutor.

Frequently Asked Questions

What coding problems does Deloitte ask in interviews?add

Deloitte has been reported to ask 26 distinct coding problems. The most common topics are array, string, dynamic-programming. 13 are Easy difficulty, 12 are Medium, and 1 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Deloitte coding interviews?add

Based on 26 reported problems, Deloitte interviews are easier than average - only 4% Hard compared to 18% across all companies. 46% of questions are Medium difficulty. Focus on the high-frequency Medium problems first, then work through the Hard ones.

How should I prepare for a Deloitte coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, string, dynamic-programming. Practice solving them under time pressure and explaining your approach out loud. Mock interviews with AI can simulate the real experience.

Other companies to explore

Ready to ace your Deloitte interview?

Simulate a real Deloitte coding interview with an AI interviewer. Get a scorecard with specific feedback on your problem-solving, code quality, and communication.

Simulate a Deloitte interview with AIarrow_forward