Airbnb Coding & Algorithms Interview Questions

Airbnb Coding & Algorithms interview questions typically probe not just whether you can arrive at a correct solution, but how you think about constraints, trade-offs, and production-readiness. Interviews often focus on arrays and strings, hashing, trees and graphs, dynamic programming, and complexity analysis, with medium-to-hard LeetCode-style problems appearing in coding rounds. Interviewers evaluate algorithmic problem solving, clear decomposition, code quality (readability, edge-case handling, tests), and communication — plus a practical sense for performance and scalability when relevant. Expect a mix of take-home or online coding screens, paired coding sessions, and live whiteboard-style rounds. For interview preparation, prioritize mastering core data structures and patterns, timed practice on medium-to-hard problems, and mock pair-programming to sharpen verbal explanation and collaborative coding. Practice walking through complexity trade-offs, writing clean, well-tested code, and explaining edge cases and optimizations. Refresh fundamentals like hashing, two-pointers, sliding windows, DFS/BFS, and memoization, and rehearse concise, structured explanations so your interviewer can follow your reasoning.

54 Questions 1 Company08.02.2026
Showing 14 results
Role
Airbnb logo
Airbnb
Medium
Software Engineer Locked

Find smallest permutation under constraints

This question evaluates digit-manipulation and combinatorial permutation skills, along with numeric ordering and representation concerns such as leadi...

Coding & Algorithms
37
2
349 people solved
Feb 12, 2026
Airbnb logo
Airbnb
Medium
Software Engineer

Print Sentences as Table

Implement a function that formats a list of sentences as a bordered table. Given: - sentences: a list of strings - width: the fixed content width of e...

Coding & Algorithms
4
1
16 people solved
Feb 9, 2026
Airbnb logo
Airbnb
Hard
Software Engineer Locked

Maximize sum with no adjacent tree nodes

This question evaluates understanding of tree-based dynamic programming and stateful optimization for selecting non-adjacent nodes, testing algorithmi...

Coding & Algorithms
12
0
91 people solved
Jan 22, 2026
Airbnb logo
Airbnb
Hard
Software Engineer

Compute maze score using shortest path

You are given a grid-based maze game. - The maze is an R x C grid of characters: - '#' = wall (cannot pass) - '.' = empty cell - 'S' = current p...

Coding & Algorithms
24
1
182 people solved
Jan 19, 2026
Airbnb logo
Airbnb
Medium
Software Engineer

Design mutable sum-tree with fast queries

You're given a rooted, mutable tree. Each leaf node stores an integer value. Each internal node's value equals the sum of its immediate children's val...

Coding & Algorithms
21
0
183 people solved
Sep 6, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Check inorder subsequence and edit tree minimally

Given a binary tree whose nodes store integers and an array target, determine whether target is a subsequence of the tree's inorder traversal (element...

Coding & Algorithms
22
1
207 people solved
Sep 6, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Verify and modify inorder subsequence

Question Given a binary tree and a sequence of numbers, design an algorithm to check in O(n) time and O( 1) extra space whether the sequence is a subs...

Coding & Algorithms
16
1
131 people solved
Aug 4, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Implement Connect Four game

Question Design and implement the Connect Four game board, player moves, and winner-detection logic. Discuss time/space complexity and possible follow...

Coding & Algorithms
23
0
199 people solved
Aug 4, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Solve palindrome pairs and key path

Question LeetCode 336. Palindrome Pairs; LeetCode 864. Shortest Path to Get All Keys https://leetcode.com/problems/palindrome-pairs/description/ https...

Coding & Algorithms
8
0
14 people solved
Aug 4, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Compute shortest path to collect all keys

You are given an m×n grid containing walls (#), open cells (.), a single start cell (@), up to six keys labeled 'a'–'f', and matching doors 'A'–'F' th...

Coding & Algorithms
9
0
105 people solved
Jul 31, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Find palindrome-forming string pairs

Given an array of distinct lowercase strings words, return all index pairs (i, j) with i != j such that the concatenation words[i] + words[j] is a pal...

Coding & Algorithms
12
0
87 people solved
Jul 31, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Allocate refund across payments

Question Given a list of completed payment transactions (each with payment method, date, and amount) and a refund amount R, write an algorithm that is...

Coding & Algorithms
78
0
258 people solved
Jul 29, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Design Connect-N winner detector

Question Design a data structure for the Connect-N game: pieces are dropped into a column (occupying the lowest empty cell). Implement move(column, pl...

Coding & Algorithms
22
2
81 people solved
Jul 29, 2025
Airbnb logo
Airbnb
Medium
Software Engineer

Design refundable transaction ledger and prioritization rules

Design and implement a transaction ledger that ingests a stream of records where each record is either a payment or a refund. Each payment has {id, us...

Coding & Algorithms
32
0
298 people solved
Jul 16, 2025

Frequently Asked Questions

How difficult are Airbnb Coding & Algorithms interview questions?
Airbnb Coding & Algorithms questions are often rated around medium with some interviews including hard problems for more senior levels. Expect time pressure and follow-up variations that probe edge cases, complexity trade-offs, and implementation robustness; interviewers frequently look for correct, readable code plus clear problem decomposition rather than a perfect one-line trick. Candidates who move forward typically demonstrate algorithmic intuition, complexity awareness, and steady communication while coding. Practical problem types tend to mirror LeetCode-style algorithm problems used across technical phone screens and on-site coding rounds.
Where in Airbnb's interview process do Coding & Algorithms questions typically appear and what does the process look like?
Coding and algorithmic questions appear throughout Airbnb’s technical funnel: an initial online assessment or take-home exercise, one or more timed phone or virtual coding screens using a collaborative editor, and multiple on-site or virtual onsite technical rounds focused on algorithmic problems. The on-site loop also usually includes system design and behavioral/value interviews, so expect coding rounds to be interleaved with other evaluations. Interviewers commonly assess correctness, edge-case handling, complexity analysis, and communication while you code. The structure and tools (OA platforms, CoderPad) are consistent with public candidate reports.
How should I structure my prep timeline for Airbnb Coding & Algorithms interviews?
A sensible timeline is paced practice over several weeks: the first phase should solidify fundamentals—arrays, strings, hashing, trees, graphs, and complexity—followed by targeted problem practice and timed mock interviews. Midway, focus on medium-to-hard LeetCode-style problems and pair-programming simulations to improve communication under time constraints. In the final weeks, rehearse end-to-end question flow, polishing edge-case checks and test cases, and run at least a few full mock interviews under realistic timing. Many successful candidates mirror company-style OAs and timed CoderPad rounds in their prep regimen.
What key subtopics within Coding & Algorithms does Airbnb emphasize?
Airbnb emphasizes classic algorithmic subtopics: array and string manipulation, hash maps and frequency counting, two-pointer and sliding-window techniques, trees and graph traversals (BFS/DFS), sorting and heaps, dynamic programming patterns, and complexity analysis. Equally important are clear handling of NULLs and edge cases, writing correct and testable code, and explaining trade-offs between solutions (space/time). For many roles, interviewers also probe problem modeling, incremental optimization, and ability to generalize patterns rather than rote memorization of specific problems.
What standout tips help candidates perform well, and what common pitfalls should they avoid?
Standout tips include clarifying requirements upfront, discussing high-level approaches before coding, iterating with a correct but simple solution, and then optimizing while explicitly analyzing complexity. Verbally walk through examples and edge cases and keep code readable with small helper functions. Common pitfalls to avoid are diving into code without confirming constraints, ignoring boundary conditions, failing to test with simple cases, and not communicating trade-offs. Interviewers at Airbnb often expect working code that passes tests and clear rationale for choices, so prioritize correctness, clarity, and incremental improvement.

Explore more Airbnb Coding & Algorithms interview questions

Real questions from candidate reports, grouped by role, topic and company.

By role
Other categories at Airbnb
Coding & Algorithms questions at other companies
Browse all