Airbnb Interview Questions — 58 DSA Problems
46 problems with full solutions in Python, Java, C++, JavaScript, Go, Rust.
Most frequently asked Airbnb LeetCode questions for software engineering interviews.
- Text Justification (HARD) — Array, String, Simulation
- Palindrome Pairs (HARD) — Array, Hash Table, String, Trie
- Maximum Profit in Job Scheduling (HARD) — Array, Binary Search, Dynamic Programming, Sorting
- Flatten 2D Vector (MEDIUM) — Array, Two Pointers, Design, Iterator
- Combination Sum (MEDIUM) — Array, Backtracking
- Smallest Common Region (MEDIUM) — Array, Hash Table, String, Tree, Depth-First Search, Breadth-First Search
- Pour Water (MEDIUM) — Array, Simulation
- Cheapest Flights Within K Stops (MEDIUM) — Dynamic Programming, Depth-First Search, Breadth-First Search, Graph, Heap (Priority Queue), Shortest Path
- Trapping Rain Water (HARD) — Array, Two Pointers, Dynamic Programming, Stack, Monotonic Stack
- Alien Dictionary (HARD) — Array, String, Depth-First Search, Breadth-First Search, Graph, Topological Sort
- Sliding Puzzle (HARD) — Array, Dynamic Programming, Backtracking, Breadth-First Search, Memoization, Matrix
- Simple Bank System (MEDIUM) — Array, Hash Table, Design, Simulation
- Shortest Path to Get All Keys (HARD) — Array, Bit Manipulation, Breadth-First Search, Matrix
- Minimum Window Substring (HARD) — Hash Table, String, Sliding Window
- Employee Free Time (HARD) — Array, Line Sweep, Sorting, Heap (Priority Queue)
- Add Two Numbers (MEDIUM) — Linked List, Math, Recursion
- Word Search II (HARD) — Array, String, Backtracking, Trie, Matrix
- Maximum Candies You Can Get from Boxes (HARD) — Array, Breadth-First Search, Graph
- Basic Calculator II (MEDIUM) — Math, String, Stack
- Contains Duplicate II (EASY) — Array, Hash Table, Sliding Window
- Two Sum (EASY) — Array, Hash Table
- Intersection of Two Linked Lists (EASY) — Hash Table, Linked List, Two Pointers
- Contains Duplicate (EASY) — Array, Hash Table, Sorting
- Mini Parser (MEDIUM) — String, Stack, Depth-First Search
- Regular Expression Matching (HARD) — String, Dynamic Programming, Recursion
- Valid Parentheses (EASY) — String, Stack
- Pyramid Transition Matrix (MEDIUM) — Bit Manipulation, Depth-First Search, Breadth-First Search
- Merge k Sorted Lists (HARD) — Linked List, Divide and Conquer, Heap (Priority Queue), Merge Sort
- IP to CIDR (MEDIUM) — String, Bit Manipulation
- Strings Differ by One Character (MEDIUM) — Hash Table, String, Rolling Hash, Hash Function
- Minimum Number of Vertices to Reach All Nodes (MEDIUM) — Graph
- Robot Bounded In Circle (MEDIUM) — Math, String, Simulation
- Add Strings (EASY) — Math, String, Simulation
- Minimize Rounding Error to Meet Target (MEDIUM) — Array, Math, String, Greedy, Sorting
- Minimum Number of Flips to Convert Binary Matrix to Zero Matrix (HARD) — Array, Hash Table, Bit Manipulation, Breadth-First Search, Matrix
- Number of Ways to Build House of Cards (MEDIUM) — Math, Dynamic Programming
- Happy Number (EASY) — Hash Table, Math, Two Pointers
- Convert to Base -2 (MEDIUM) — Math
- Design File System (MEDIUM) — Hash Table, String, Design, Trie
- Convert Sorted Array to Binary Search Tree (EASY) — Array, Divide and Conquer, Tree, Binary Search Tree, Binary Tree
- Single Number (EASY) — Array, Bit Manipulation
- Reverse Bits (EASY) — Divide and Conquer, Bit Manipulation
- House Robber (MEDIUM) — Array, Dynamic Programming
- Contains Duplicate III (HARD) — Array, Sliding Window, Sorting, Bucket Sort, Ordered Set
- Maximal Square (MEDIUM) — Array, Dynamic Programming, Matrix
- Design Tic-Tac-Toe (MEDIUM) — Array, Hash Table, Design, Matrix, Simulation
- Subarray Product Less Than K (MEDIUM) — Array, Binary Search, Sliding Window, Prefix Sum
- Shortest Uncommon Substring in an Array (MEDIUM) — Array, Hash Table, String, Trie
- Design Excel Sum Formula (HARD) — Array, Hash Table, String, Graph, Design, Topological Sort, Matrix
- All O`one Data Structure (HARD) — Hash Table, Linked List, Design, Doubly-Linked List
A
Airbnb
58 questions tracked46 with solutions
Frequency scoreSorted highest → lowest frequency✓ Our Solution = we have a detailed walkthrough
Showing 58 of 58 questions
2ArrayHash TableStringTrie
3ArrayBinary SearchDynamic ProgrammingSorting
4MediumFlatten 2D Vector
ArrayTwo PointersDesignIterator
6MediumSmallest Common Region
ArrayHash TableStringTree+2
7MediumPour Water
ArraySimulation
8Dynamic ProgrammingDepth-First SearchBreadth-First SearchGraph+2
9ArrayTwo PointersDynamic ProgrammingStack+1
10HardAlien Dictionary
ArrayStringDepth-First SearchBreadth-First Search+2
11ArrayDynamic ProgrammingBacktrackingBreadth-First Search+2
12ArrayHash TableDesignSimulation
13ArrayBit ManipulationBreadth-First SearchMatrix
14Hash TableStringSliding Window
15HardEmployee Free Time
ArrayLine SweepSortingHeap (Priority Queue)
17ArrayStringBacktrackingTrie+1
18ArrayBreadth-First SearchGraph
20ArrayHash TableSliding Window
22Hash TableLinked ListTwo Pointers
24StringStackDepth-First Search
25StringDynamic ProgrammingRecursion
27Bit ManipulationDepth-First SearchBreadth-First Search
28Linked ListDivide and ConquerHeap (Priority Queue)Merge Sort
29MediumIP to CIDR
StringBit Manipulation
30MediumStrings Differ by One Character
Hash TableStringRolling HashHash Function
34MediumMinimize Rounding Error to Meet Target
ArrayMathStringGreedy+1
35HardMinimum Number of Flips to Convert Binary Matrix to Zero Matrix✓ Our Solution ArrayHash TableBit ManipulationBreadth-First Search+1
36MediumNumber of Ways to Build House of Cards
MathDynamic Programming
37Hash TableMathTwo Pointers
39MediumDesign File System
Hash TableStringDesignTrie
40ArrayDivide and ConquerTreeBinary Search Tree+1
42Divide and ConquerBit Manipulation
44ArraySliding WindowSortingBucket Sort+1
45ArrayDynamic ProgrammingMatrix
46MediumDesign Tic-Tac-Toe
ArrayHash TableDesignMatrix+1
47ArrayBinary SearchSliding WindowPrefix Sum
48ArrayHash TableStringTrie
49HardDesign Excel Sum Formula
ArrayHash TableStringGraph+3
50Hash TableLinked ListDesignDoubly-Linked List
52Hash TableStringBinary SearchDesign
53ArrayBreadth-First SearchMatrix
54ArrayDepth-First SearchBreadth-First SearchUnion Find+1
55StackTreeDepth-First SearchDesign+2
58ArrayDynamic ProgrammingBreadth-First Search