Airbnb coding interview

Round 5 of 9 · 31 questions reported

See the whole loop
Length
45 min
Format
Live coding, one or two rounds, from the same pool as the screen
They grade
Correct, bug-free code and your own tests

Questions Airbnb asks in this round 31

  • Review a series of pull requestsCodingYou get two or three pull requests, each harder than the last, in Python or Java. Read each one, leave comments as you would on a real review, and point out bugs, design problems…
    Last asked Aug 2026
  • Highlight categorized phrases in a reviewCodingReviews on a travel site should show key phrases with their category. Write a function that marks every mapped phrase in a review. mapping is a list of (phrase, category) pairs…
    Last asked Sep 2026
  • Split stays across two listingsCodingA vacation rental site wants to offer split stays: when no single home is free for a guest's whole trip, the guest stays in one home first and then moves to another. There are n…
    Last asked Feb 2026
  • Build a booking widget with live pricingCodingBuild a small reservation widget for a listing, front end and a simple back end. Pick check-in and check-out dates and the number of adults and children; show the total price…
    Possibly retired
  • Generic retry helper with configurable backoffCodingCalls to remote services fail now and then for reasons that go away on their own: a dropped connection, a busy server, a timeout. Write a generic retry helper that runs a…
    Last asked Aug 2026
  • Fill a layover with the fewest bookingsCodingYou land with a long layover and want to spend all of it on bookable local experiences. Each experience has a fixed whole-number duration in hours, and you may book the same…
    Last asked Jun 2026
  • Every cheapest way to order from a combo menuCodingA food ordering app wants to show a customer every cheapest way to buy the dishes they want. The menu is a list of entries. Each entry is (id, price, items): - id: a unique…
    Last asked May 2026
  • Deduplicate account sign-ups by email and phoneCodingA sign-up service processes account registrations one at a time, in the order they arrive. You get three lists of the same length n: names, emails and phones. Index i of each list…
    Last asked Apr 2026
  • Refund allocation across prioritized payment methodsCodingA customer's order was paid with one or more payments, and some of them may already have been partly refunded. Implement a function that splits a new refund across those payments…
    Last asked Apr 2026
  • Best-scoring ski run through a trail mapCodingA ski area has mapped its one-way trails between named checkpoints. The trail map has no cycles: once you ski down a trail you can never get back to where you were. Every trail…
    Last asked Mar 2026
  • Palindrome pairsCodingGiven a list of distinct words, return every pair of indices (i, j) where wordsi + wordsj is a palindrome. Checking all pairs is too slow; put the reversed words in a hash map (or…
    Possibly retired
  • Shortest path to collect all keysCodingA grid has walls, a start cell, keys (lowercase letters) and locks (the matching uppercase letters). A lock can only be passed once you hold its key. Return the fewest steps to…
    Possibly retired
  • Find super hosts from listing and review rulesCodingGiven host data with their listings, ratings and reviews, return the hosts who qualify as super hosts under several rules that must all hold, such as a minimum number of listings…
    Last asked Sep 2026
  • Median house price in each cityCodingGiven a list of house sales with a city and a price, return the median price for each city. Group the prices by city in a dictionary, sort each group, and take the middle value…
    Last asked Sep 2026
  • Time on page from the next user eventCodingGiven a table of user events with timestamps, estimate how long each user stayed on each page as the time until that user's next event. Use LEAD() partitioned by user and ordered…
    Last asked Sep 2026
  • Users with impressions on seven consecutive daysCodingFrom a table of user impressions with dates, find the users who had at least one impression on seven days in a row. Remove duplicate days per user, then use a window function (row…
    Last asked Sep 2026
  • Fill an order from the oldest inventory batches firstCodingA warehouse keeps stock in batches received at different times. Fill an order by taking units from the oldest batches first, moving to newer batches as each one runs out. Return…
    Last asked Aug 2026
  • Group booking across properties in one neighborhoodCodingA rental company houses groups in its properties. A group may be split across several properties, but all of them must be in the neighborhood the group asked for. Implement…
    Last asked May 2026
  • Flatten a nested list iteratorCodingA list holds integers and other lists, nested to any depth. Write an iterator with next() and hasnext() that returns the integers in order. Do it lazily with a stack of positions…
    Last asked Apr 2026
  • Sliding puzzle on a 2 by 3 boardCodingA 2 by 3 board holds tiles 1 to 5 and one empty cell. A move slides a tile next to the empty cell into it. Return the fewest moves to reach the solved board, or -1 if it cannot be…
    Last asked Apr 2026
  • Rotting oranges: time for an infection to cover a gridCodingA grid has empty cells, healthy cells and infected cells. Every minute each infected cell infects its healthy neighbors up, down, left and right. Return the minutes until no…
    Last asked Mar 2026
  • Intersection of two linked lists that may have cyclesCodingGiven the heads of two singly linked lists, each of which may or may not contain a cycle, decide whether they share a node and return the first shared node. Find where each list's…
    Last asked Jan 2026
  • Sum tree with node values computed from childrenCodingA tree's leaves hold numbers, and every other node's value is the sum of its children. Return the value of any node. Then support changes: turn a node into a leaf with a value, or…
    Possibly retired
  • Collatz sequence steps with memoized range maximumCodingStarting from a positive integer n, repeat the following until n equals 1: - If n is even, set n = n / 2. - If n is odd, set n = 3n + 1. Each replacement counts as one step. (It…
  • Crack a 4-digit code from exact-match countsCodingA server holds a secret 4-character code. Each character is a digit from '0' to '9'. Digits may repeat, and the code may start with zeros. You can only learn about the code…
  • Justify articles to a fixed line widthCodingYour platform shows articles in a fixed-width text column. Write a function that lays out a list of articles and returns every output line in order, as one flat list. Rules - Each…
  • Maximum profit from unit-time tasks with deadlinesCodingYou are given a list of tasks. Each task is a list of three strings: name, deadline, profit. - Every task takes exactly 1 second, and only one task can run at a time. - Time…
  • Median of a large unsorted array in linear timeCodingYou are given a very large, unsorted list of integers nums. Return its median. - If len(nums) is odd, the median is the middle value once the list is sorted. - If len(nums) is…