Problem database last updated: June 20, 2025

DDropbox logo

Dropbox Coding Interview Questions

20 problems · 2 Easy, 9 Medium, 9 Hard · Ranked #91 of 458

Difficulty breakdown

2 Easy

10% · avg 23%

9 Medium

45% · avg 59%

9 Hard

45% · avg 18%

Top topics

array
80%
hash-table
50%2.2x
string
35%
depth-first-search
20%2.2x
breadth-first-search
20%2.4x
union-find
20%6.8x

Interview profile

Based on 20 reported problems, Dropbox interviews are significantly harder than average - 45% Hard vs 18% across all companies.

Compared to the industry average, Dropbox puts unusual emphasis on union-find (20% of problems, 6.8x the industry average), trie (10% of problems, 3.8x the industry average), simulation (15% of problems, 3.5x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (80%), hash-table (50%), string (35%), depth-first-search (20%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 20 problems

Simple Bank System

Solve

You have been tasked with writing a program for a popular bank that will automate all its incoming transactions (transfer, deposit, and withdraw). The bank has...

MediumVery Likely
arrayhash-tabledesign

Find Duplicate File in System

Solve

Given a list paths of directory info, including the directory path, and all the files with contents in this directory, return all the duplicate files in the fil...

MediumVery Likely
arrayhash-tablestring

Game of Life

Solve

According to Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British mathematician John Horton Conway...

MediumVery Likely
arraymatrixsimulation

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

Median of Two Sorted Arrays

Solve

Given two sorted arrays nums1 and nums2 of size m and n respectively, return the median of the two sorted arrays.

HardVery Likely
arraybinary-searchdivide-and-conquer

Letter Combinations of a Phone Number

Solve

Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. Return the answer in any order.

MediumVery Likely
hash-tablestringbacktracking

Word Break II

Solve

Given a string s and a dictionary of strings wordDict, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such possi...

HardVery Likely
arrayhash-tablestring

Grid Illumination

Solve

There is a 2D grid of size n x n where each cell of this grid has a lamp that is initially turned off.

HardVery Likely
arrayhash-table

Minimize Malware Spread

Solve

You are given a network of n nodes represented as an n x n adjacency matrix graph, where the ith node is directly connected to the jth node if graph[i][j] == 1.

HardVery Likely
arrayhash-tabledepth-first-search

Minimize Malware Spread II

Solve

You are given a network of n nodes represented as an n x n adjacency matrix graph, where the ith node is directly connected to the jth node if graph[i][j] == 1.

HardVery Likely
arrayhash-tabledepth-first-search

Seat Reservation Manager

Solve

Design a system that manages the reservation state of n seats that are numbered from 1 to n.

MediumVery Likely
designheap-priority-queue

Design a Text Editor

Solve

Design a text editor with a cursor that can do the following:

HardVery Likely
linked-liststringstack

Check If It Is a Good Array

Solve

Given an array nums of positive integers. Your task is to select some subset of nums, multiply each element by an integer and add all these numbers. The array i...

HardVery Likely
arraymathnumber-theory

Word Pattern

Solve

Given a pattern and a string s, find if s follows the same pattern.

EasyVery Likely
hash-tablestring

Number of Valid Words for Each Puzzle

Solve

With respect to a given puzzle string, a word is valid if both the following conditions are satisfied:

HardVery Likely
arrayhash-tablestring

Max Area of Island

Solve

You are given an m x n binary matrix grid. An island is a group of 1's (representing land) connected 4-directionally (horizontal or vertical.) You may assume al...

MediumVery Likely
arraydepth-first-searchbreadth-first-search

Guess the Word

Solve

You are given an array of unique strings words where words[i] is six letters long. One word of words was chosen as a secret word.

HardLikely
arraymathstring

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

Top K Frequent Elements

Solve

Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order.

MediumLikely
arrayhash-tabledivide-and-conquer

Number of Islands

Solve

Given an m x n 2D binary grid grid which represents a map of '1's (land) and '0's (water), return the number of islands.

MediumLikely
arraydepth-first-searchbreadth-first-search

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 Dropbox interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Dropbox coding interview

Dropbox interviews focus heavily on array, hash-table, string 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. Dropbox 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 Dropbox ask in interviews?add

Dropbox has been reported to ask 20 distinct coding problems. The most common topics are array, hash-table, string. 2 are Easy difficulty, 9 are Medium, and 9 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Dropbox coding interviews?add

Based on 20 reported problems, Dropbox interviews are significantly harder than average - 45% Hard vs 18% across all companies. 45% 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 Dropbox coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: array, hash-table, string. 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 Dropbox interview?

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

Simulate a Dropbox interview with AIarrow_forward