Problem database last updated: June 20, 2025

DDeutsche Bank logo

Deutsche Bank Coding Interview Questions

28 problems · 8 Easy, 13 Medium, 7 Hard · Ranked #69 of 458

Difficulty breakdown

8 Easy

29% · avg 23%

13 Medium

46% · avg 59%

7 Hard

25% · avg 18%

Top topics

array
89.3%1.5x
sorting
32.1%2.2x
greedy
25%3x
binary-search
17.9%2x
string
14.3%
dynamic-programming
14.3%

Interview profile

Based on 28 reported problems, Deutsche Bank interviews are slightly harder than average - 25% Hard vs 18% across all companies.

Compared to the industry average, Deutsche Bank puts unusual emphasis on prefix-sum (10.7% of problems, 3.2x the industry average), greedy (25% of problems, 3x the industry average), sliding-window (14.3% of problems, 3x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (89.3%), sorting (32.1%), greedy (25%), binary-search (17.9%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 28 problems

Smallest K-Length Subsequence With Occurrences of a Letter

Solve

You are given a string s, an integer k, a letter letter, and an integer repetition.

HardVery Likely
stringstackgreedy

Find the Maximum Sum of Node Values

Solve

There exists an undirected tree with n nodes numbered 0 to n - 1. You are given a 0-indexed 2D integer array edges of length n - 1, where edges[i] = [ui, vi] in...

HardVery Likely
arraydynamic-programminggreedy

Maximum Running Time of N Computers

Solve

You have n computers. You are given the integer n and a 0-indexed integer array batteries where the ith battery can run a computer for batteries[i] minutes. You...

HardVery Likely
arraybinary-searchgreedy

Minimum Operations to Make the Array Increasing

Solve

You are given an integer array nums (0-indexed). In one operation, you can choose an element of the array and increment it by 1.

EasyVery Likely
arraygreedy

Minimum Operations to Collect Elements

Solve

You are given an array nums of positive integers and an integer k.

EasyVery Likely
arrayhash-tablebit-manipulation

The Time When the Network Becomes Idle

Solve

There is a network of n servers, labeled from 0 to n - 1. You are given a 2D integer array edges, where edges[i] = [ui, vi] indicates there is a message channel...

MediumVery Likely
arraybreadth-first-searchgraph

Apply Operations to Maximize Frequency Score

Solve

You are given a 0-indexed integer array nums and an integer k.

HardVery Likely
arraybinary-searchsliding-window

Minimize the Difference Between Target and Chosen Elements

Solve

You are given an m x n integer matrix mat and an integer target.

MediumVery Likely
arraydynamic-programmingmatrix

Koko Eating Bananas

Solve

Koko loves to eat bananas. There are n piles of bananas, the ith pile has piles[i] bananas. The guards have gone and will come back in h hours.

MediumVery Likely
arraybinary-search

Robot Collisions

Solve

There are n 1-indexed robots, each having a position on a line, health, and movement direction.

HardVery Likely
arraystacksorting

Boats to Save People

Solve

You are given an array people where people[i] is the weight of the ith person, and an infinite number of boats where each boat can carry a maximum weight of lim...

MediumVery Likely
arraytwo-pointersgreedy

Collecting Chocolates

Solve

You are given a 0-indexed integer array nums of size n representing the cost of collecting different chocolates. The cost of collecting the chocolate at the ind...

MediumLikely
arrayenumeration

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

Asteroid Collision

Solve

We are given an array asteroids of integers representing asteroids in a row. The indices of the asteroid in the array represent their relative position in space...

MediumLikely
arraystacksimulation

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.

EasyLikely
arrayhash-map

Frequency of the Most Frequent Element

Solve

The frequency of an element is the number of times it occurs in an array.

MediumLikely
arraybinary-searchgreedy

Longest Common Prefix

Solve

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

EasyLikely
arraystringtrie

Maximum Fruits Harvested After at Most K Steps

Solve

Fruits are available at some positions on an infinite x-axis. You are given a 2D integer array fruits where fruits[i] = [positioni, amounti] depicts amounti fru...

HardLikely
arraybinary-searchsliding-window

Best Time to Buy and Sell Stock II

Solve

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

MediumLikely
arraydynamic-programminggreedy

Reverse String

Solve

Write a function that reverses a string. The input string is given as an array of characters s.

EasyLikely
two-pointersstring

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

Squares of a Sorted Array

Solve

Given an integer array nums sorted in non-decreasing order, return an array of the squares of each number sorted in non-decreasing order.

EasyLikely
arraytwo-pointerssorting

Rotting Oranges

Solve

You are given an m x n grid where each cell can have one of three values:

MediumLikely
arraybreadth-first-searchmatrix

Design HashMap

Solve

Design a HashMap without using any built-in hash table libraries.

EasyLikely
arrayhash-tablelinked-list

Validate IP Address

Solve

Given a string queryIP, return "IPv4" if IP is a valid IPv4 address, "IPv6" if IP is a valid IPv6 address or "Neither" if IP is not a correct IP of any type.

MediumLikely
string

Minimize Manhattan Distances

Solve

You are given an array points representing integer coordinates of some points on a 2D plane, where points[i] = [xi, yi].

HardLikely
arraymathgeometry

Fruit Into Baskets

Solve

You are visiting a farm that has a single row of fruit trees arranged from left to right. The trees are represented by an integer array fruits where fruits[i] i...

MediumLikely
arrayhash-tablesliding-window

Spiral Matrix

Solve

Given an m x n matrix, return all elements of the matrix in spiral order.

MediumLikely
arraymatrixsimulation

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 Deutsche Bank interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Deutsche Bank coding interview

Deutsche Bank interviews focus heavily on array, sorting, greedy 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. Deutsche Bank 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 Deutsche Bank ask in interviews?add

Deutsche Bank has been reported to ask 28 distinct coding problems. The most common topics are array, sorting, greedy. 8 are Easy difficulty, 13 are Medium, and 7 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Deutsche Bank coding interviews?add

Based on 28 reported problems, Deutsche Bank interviews are slightly harder than average - 25% Hard vs 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 Deutsche Bank coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, sorting, greedy. 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 Deutsche Bank interview?

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

Simulate a Deutsche Bank interview with AIarrow_forward