Problem database last updated: June 20, 2025

AAirbnb logo

Airbnb Coding Interview Questions

46 problems · 11 Easy, 20 Medium, 15 Hard · Ranked #45 of 458

Difficulty breakdown

11 Easy

24% · avg 23%

20 Medium

43% · avg 59%

15 Hard

33% · avg 18%

Top topics

array
56.5%
string
30.4%
hash-table
28.3%
dynamic-programming
17.4%
breadth-first-search
17.4%2.1x
matrix
15.2%1.7x

Interview profile

Based on 46 reported problems, Airbnb interviews are significantly harder than average - 33% Hard vs 18% across all companies.

Compared to the industry average, Airbnb puts unusual emphasis on bit-manipulation (10.9% of problems, 3.2x the industry average), trie (6.5% of problems, 2.5x the industry average), graph (6.5% of problems, 2.2x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are array (56.5%), string (30.4%), hash-table (28.3%), dynamic-programming (17.4%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 46 problems

Text Justification

Solve

Given an array of strings words and a width maxWidth, format the text such that each line has exactly maxWidth characters and is fully (left and right) justifie...

HardVery Likely
arraystringsimulation

Maximum Profit in Job Scheduling

Solve

We have n jobs, where every job is scheduled to be done from startTime[i] to endTime[i], obtaining a profit of profit[i].

HardVery Likely
arraybinary-searchdynamic-programming

Palindrome Pairs

Solve

You are given a 0-indexed array of unique strings words.

HardVery Likely
arrayhash-tablestring

Combination Sum

Solve

Given an array of distinct integers candidates and a target integer target, return a list of all unique combinations of candidates where the chosen numbers sum...

MediumVery Likely
arraybacktracking

Trapping Rain Water

Solve

Given n non-negative integers representing an elevation map where the width of each bar is 1, compute how much water it can trap after raining.

HardVery Likely
arraytwo-pointersdynamic-programming

Cheapest Flights Within K Stops

Solve

There are n cities connected by some number of flights. You are given an array flights where flights[i] = [fromi, toi, pricei] indicates that there is a flight...

MediumVery Likely
dynamic-programmingdepth-first-searchbreadth-first-search

Sliding Puzzle

Solve

On an 2 x 3 board, there are five tiles labeled from 1 to 5, and an empty square represented by 0. A move consists of choosing 0 and a 4-directionally adjacent...

HardVery Likely
arraydynamic-programmingbacktracking

Shortest Path to Get All Keys

Solve

You are given an m x n grid grid where:

HardLikely
arraybit-manipulationbreadth-first-search

Minimum Window Substring

Solve

Given two strings s and t of lengths m and n respectively, return the minimum window substring of s such that every character in t (including duplicates) is inc...

HardLikely
hash-tablestringsliding-window

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

MediumLikely
arrayhash-tabledesign

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

Add Two Numbers

Solve

You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order, and each of their nodes contains a sing...

MediumLikely
linked-listmathrecursion

Basic Calculator II

Solve

Given a string s which represents an expression, evaluate this expression and return its value.

MediumLikely
mathstringstack

Intersection of Two Linked Lists

Solve

Given the heads of two singly linked-lists headA and headB, return the node at which the two lists intersect. If the two linked lists have no intersection at al...

EasyLikely
hash-tablelinked-listtwo-pointers

Word Search II

Solve

Given an m x n board of characters and a list of strings words, return all words on the board.

HardLikely
arraystringbacktracking

Maximum Candies You Can Get from Boxes

Solve

You have n boxes labeled from 0 to n - 1. You are given four arrays: status, candies, keys, and containedBoxes where:

HardLikely
arraybreadth-first-searchgraph

Contains Duplicate II

Solve

Given an integer array nums and an integer k, return true if there are two distinct indices i and j in the array such that nums[i] == nums[j] and abs(i - j) <=...

EasyLikely
arrayhash-tablesliding-window

Merge k Sorted Lists

Solve

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

HardLikely
linked-listdivide-and-conquerheap-priority-queue

Contains Duplicate

Solve

Given an integer array nums, return true if any value appears at least twice in the array, and return false if every element is distinct.

EasyLikely
arrayhash-tablesorting

Pyramid Transition Matrix

Solve

You are stacking blocks to form a pyramid. Each block has a color, which is represented by a single letter. Each row of blocks contains one less block than the...

MediumLikely
hash-tablestringbacktracking

Minimum Number of Vertices to Reach All Nodes

Solve

Given a directed acyclic graph, with n vertices numbered from 0 to n-1, and an array edges where edges[i] = [fromi, toi] represents a directed edge from node fr...

MediumLikely
graph

Robot Bounded In Circle

Solve

On an infinite plane, a robot initially stands at (0, 0) and faces north. Note that:

MediumLikely
mathstringsimulation

Add Strings

Solve

Given two non-negative integers, num1 and num2 represented as string, return the sum of num1 and num2 as a string.

EasyLikely
mathstringsimulation

Minimum Number of Flips to Convert Binary Matrix to Zero Matrix

Solve

Given a m x n binary matrix mat. In one step, you can choose one cell and flip it and all the four neighbors of it if they exist (Flip is changing 1 to 0 and 0...

HardLikely
arrayhash-tablebit-manipulation

Convert to Base -2

Solve

Given an integer n, return a binary string representing its representation in base -2.

MediumLikely
math

Single Number

Solve

Given a non-empty array of integers nums, every element appears twice except for one. Find that single one.

EasyLikely
arraybit-manipulation

Reverse Bits

Solve

Reverse bits of a given 32 bits signed integer.

EasyLikely
divide-and-conquerbit-manipulation

Contains Duplicate III

Solve

You are given an integer array nums and two integers indexDiff and valueDiff.

HardLikely
arraysliding-windowsorting

Maximal Square

Solve

Given an m x n binary matrix filled with 0's and 1's, find the largest square containing only 1's and return its area.

MediumLikely
arraydynamic-programmingmatrix

Convert Sorted Array to Binary Search Tree

Solve

Given an integer array nums where the elements are sorted in ascending order, convert it to a height-balanced binary search tree.

EasyLikely
arraydivide-and-conquertree

House Robber

Solve

You are a professional robber planning to rob houses along a street. Each house has a certain amount of money stashed, the only constraint stopping you from rob...

MediumLikely
arraydynamic-programming

Valid Parentheses

Solve

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

EasyLikely
stringstack

Happy Number

Solve

Write an algorithm to determine if a number n is happy.

EasyLikely
hash-tablemathtwo-pointers

Mini Parser

Solve

Given a string s represents the serialization of a nested list, implement a parser to deserialize it and return the deserialized NestedInteger.

MediumLikely
stringstackdepth-first-search

Regular Expression Matching

Solve

Given an input string s and a pattern p, implement regular expression matching with support for '.' and '' where:

HardLikely
stringdynamic-programmingrecursion

Subarray Product Less Than K

Solve

Given an array of integers nums and an integer k, return the number of contiguous subarrays where the product of all the elements in the subarray is strictly le...

MediumLikely
arraybinary-searchsliding-window

Shortest Uncommon Substring in an Array

Solve

You are given an array arr of size n consisting of non-empty strings.

MediumLikely
arrayhash-tablestring

All O`one Data Structure

Solve

Design a data structure to store the strings' count with the ability to return the strings with minimum and maximum counts.

HardSometimes
hash-tablelinked-listdesign

Fraction to Recurring Decimal

Solve

Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.

MediumSometimes
hash-tablemathstring

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

MediumSometimes
arraysorting

Time Based Key-Value Store

Solve

Design a time-based key-value data structure that can store multiple values for the same key at different time stamps and retrieve the key's value at a certain...

MediumSometimes
hash-tablestringbinary-search

Shortest Path in Binary Matrix

Solve

Given an n x n binary matrix grid, return the length of the shortest clear path in the matrix. If there is no clear path, return -1.

MediumSometimes
arraybreadth-first-searchmatrix

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.

MediumSometimes
arraydynamic-programmingbreadth-first-search

Making A Large Island

Solve

You are given an n x n binary matrix grid. You are allowed to change at most one 0 to be 1.

HardSometimes
arraydepth-first-searchbreadth-first-search

Can Place Flowers

Solve

You have a long flowerbed in which some of the plots are planted, and some are not. However, flowers cannot be planted in adjacent plots.

EasySometimes
arraygreedy

Flatten Nested List Iterator

Solve

You are given a nested list of integers nestedList. Each element is either an integer or a list whose elements may also be integers or other lists. Implement an...

MediumSometimes
stacktreedepth-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 Airbnb interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Airbnb coding interview

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

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

How hard are Airbnb coding interviews?add

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

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

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

Simulate a Airbnb interview with AIarrow_forward