Skip to main content

Airbnb Coding Interview Questions

32 Airbnb coding interview problems with full optimal solutions — 1 easy, 20 medium, 11 hard. Every problem ships with multiple approaches (brute-force first, then the optimal), complexity tables for each, company-specific tips on what an Airbnb interviewer values, and a FAQ section.

  • #4hardfoundational

    4. Median of Two Sorted Arrays

    Find the exact midpoint of two sorted price lists without merging them — Airbnb's dynamic pricing engine computes real-time median nightly rates across two independently sorted market segments to anchor smart pricing recommendations for hosts.

  • #23hardfoundational

    23. Merge K Sorted Lists

    Combine k sorted ranking feeds into one unified result — Airbnb's search infrastructure merges sorted candidate lists from neighborhood, price, and availability shards into a single ranked page of listings.

  • #49mediumfoundational

    49. Group Anagrams

    Cluster words that are rearrangements of each other — Airbnb's search team applies this hash-map grouping pattern to deduplicate listing titles that differ only in word order, surfacing canonical results to guests.

  • #56mediumfoundational

    56. Merge Intervals

    Collapse overlapping date ranges into clean availability windows — the exact interval-merge logic Airbnb's calendar engine runs every time a host blocks dates or a guest extends a stay.

  • #57mediumfoundational

    57. Insert Interval

    Splice a new booking into a sorted availability list without disturbing existing reservations — Airbnb's calendar service does this on every Instant Book confirmation that lands between two blocked windows.

  • #78mediumfoundational

    78. Subsets

    Generate every combination of amenities a listing can offer — Airbnb's search filter engine enumerates amenity subsets to build exhaustive filter option sets for features like pool plus wifi plus kitchen on the host settings page.

  • #200mediumfoundational

    200. Number of Islands

    Count connected land clusters on a grid map — Airbnb's geo-clustering engine uses the same connected-components logic to group nearby listings into distinct neighborhood zones for the search map view.

  • #238mediumfoundational

    238. Product of Array Except Self

    Compute each element's contribution without knowing the whole product — Airbnb's pricing engine uses leave-one-out multiplications when computing the relative impact of a single listing's price on an aggregated market signal.

  • #253mediumfoundational

    253. Meeting Rooms II

    Find the minimum number of rooms needed for overlapping meetings — Airbnb applies this directly to host-support queues, determining how many concierge agents must be on-call during peak booking hours.

  • #355mediumfoundational

    355. Design Twitter

    Build a follow graph with a merged activity feed — Airbnb's host-community product uses an identical follow/feed design to let guests subscribe to hosts and see their latest listings, reviews, and availability updates.

  • #621mediumfoundational

    621. Task Scheduler

    Minimize total time when identical tasks must cool down between runs — Airbnb's host-onboarding pipeline applies this cooling-period logic to ensure the same verification job does not re-run on the same listing until a mandatory review window has passed.

  • #1094mediumfoundational

    1094. Car Pooling

    Check whether a shared vehicle ever exceeds capacity across multiple pickup-dropoff trips — Airbnb's Trips team applies this interval-difference-array pattern to validate that shared shuttles to airports never overbook across overlapping passenger legs.

  • #10hardless common

    10. Regular Expression Matching

    Implement regex matching with '.' (any single char) and '*' (zero or more). Airbnb asks this to test whether you can write the 2D DP recurrence and articulate why memoization beats raw recursion.

    3 free resourcesSolve →
  • #44hardfrequently asked

    44. Wildcard Matching

    Match a string against a pattern with '?' (any single char) and '*' (any sequence including empty). Airbnb asks this to test 2D DP plus the greedy two-pointer optimization that beats it on space.

    3 free resourcesSolve →
  • #68hardcompany favorite

    68. Text Justification

    Given words and maxWidth, format text so each line is exactly maxWidth chars with full justification (even space distribution). Airbnb asks this to test careful index bookkeeping and the last-line + single-word edge cases.

    3 free resourcesSolve →
  • #76hardfrequently asked

    76. Minimum Window Substring

    Find the smallest substring of s that contains every char of t with multiplicities. Airbnb asks this to test the canonical sliding-window template with need/have counts and a 'formed' counter.

    3 free resourcesSolve →
  • #125easyfoundational

    125. Valid Palindrome

    After lowercasing and removing non-alphanumeric chars, is the string a palindrome? Airbnb asks this to test two-pointer-in-place rather than the easier O(n) extra-space approach.

    3 free resourcesSolve →
  • #127hardfrequently asked

    127. Word Ladder

    Given begin/end words and a word list, find the shortest transformation sequence (one letter at a time, each step in the list). Airbnb asks this to test BFS on implicit graphs plus the wildcard-bucket trick.

    3 free resourcesSolve →
  • #207mediumfrequently asked

    207. Course Schedule

    Given courses and prerequisites, determine if you can finish all courses. Airbnb asks this to test whether you map the problem to 'is the directed graph a DAG?' and reach for either Kahn's BFS or DFS 3-color.

    3 free resourcesSolve →
  • #212hardfrequently asked

    212. Word Search II

    Given an m x n board of letters and a list of words, return all words formed by adjacent cells (no reuse). Airbnb asks this to test trie + DFS — running word-by-word DFS doesn't scale.

    3 free resourcesSolve →
  • #269hardcompany favorite

    269. Alien Dictionary

    Given a list of words sorted lexicographically in some unknown alphabet, derive the order. Airbnb asks this to test inferring a directed graph from pairwise word comparisons plus topological sort.

    3 free resourcesSolve →
  • #295hardcompany favorite

    295. Find Median From Data Stream

    Design a data structure that supports addNum and findMedian in roughly O(log n) and O(1). Airbnb asks this to test the two-heaps trick: a max-heap of the lower half balanced with a min-heap of the upper half.

    3 free resourcesSolve →
  • #297hardfrequently asked

    297. Serialize and Deserialize Binary Tree

    Encode a binary tree to a string and decode the string back. Airbnb asks this to test pre-order with explicit null markers vs level-order serialization — both work, but pick one and defend it.

    3 free resourcesSolve →
  • #314mediumcompany favorite

    314. Binary Tree Vertical Order Traversal

    Return the values of a binary tree visited in vertical order, top to bottom, left to right. Airbnb asks this to test BFS with column tracking and how you order ties (left before right at the same row).

    3 free resourcesSolve →
  • #347mediumfrequently asked

    347. Top K Frequent Elements

    Given an integer array and integer k, return the k most frequent elements. Airbnb asks this to test whether you reach for bucket sort or a min-heap — both beat the naive sort.

    3 free resourcesSolve →
  • #380mediumcompany favorite

    380. Insert Delete GetRandom O(1)

    Design a set supporting insert, remove, and getRandom all in O(1) average. Airbnb asks this to test the array + hash-map-of-indices pattern — array gives O(1) random; hash map gives O(1) lookup; swap-remove keeps both true.

    3 free resourcesSolve →
  • #545mediumcompany favorite

    545. Boundary of Binary Tree

    Return the values on the boundary of a binary tree: left side top-down, leaves left-to-right, right side bottom-up. Airbnb asks this to test combining three different traversals without double-counting corners.

    3 free resourcesSolve →
  • #755mediumcompany favorite

    755. Pour Water

    Simulate dropping V units of water at index K on a height array. Each unit prefers left, then right, then stays. Airbnb asks this to test careful simulation — the rules are pickier than they look.

    3 free resourcesSolve →

Related interview-prep guides

Interview Platforms

CoderPad Live Coding Interview Guide (2026): What the Pad Tracks and How to Walk Through It Cleanly

CoderPad is the default live-coding environment for human-led technical interviews in 2026. Used by YC startups, FAANG-tier teams, and most of the tech mid-market. The pad records every keystroke, every paste event, every language switch, and offers an interviewer scrub-back feature most candidates never realize exists. This is what CoderPad tracks, how the live session compares to async assessments, and how a modern desktop AI setup pairs with it without showing up in the screen-share.

Interview Platforms

Replit for Tech Interviews in 2026: The Full-IDE Take-Home Guide

Replit-for-hiring is the full-IDE take-home format. The candidate gets a forked Repl, hours or days to ship a working project, and a commit history the reviewer will scrutinize line-by-line. This guide breaks down what Replit captures, what it doesn't, and how a desktop AI setup pairs with the multi-day window.

Interview Platforms

Zoom Tech Interview Guide 2026: How the Platform Works for Engineering Hiring

Zoom is the most-deployed video meeting software in US tech hiring. It is the default from one-person startups to Fortune 100 engineering orgs. It is general-purpose meeting software, not an anti-cheating platform. This guide covers what Zoom sees during a tech interview, the screen-share modes hiring teams use, the OS-level boundary the platform cannot cross, and how a modern desktop interview assistant pairs with the standard Zoom tech-interview flow.

Airbnb Coding Interview Questions — Full Solutions — InterviewChamp.AI