I Aced Airbnb HackerRank in 2026: Real Questions and a Study Plan
Quick Facts
| Assessment platform | Airbnb HackerRank (`hackerrank.com`) for SWE Intern and Campus roles; select 2026 New Grad waves use CodeSignal ICA |
| Question count | 1 coding problem most common (2 problems in select campus waves); no MCQs |
| Time limit | 60 minutes standard (90 minutes reported for select L4 loops) |
| Invite window | 4 to 7 days from invite email to completion |
| Proctoring | No webcam reported on past SWE tests; copy-paste, tab tracking, and MOSS always on, plus optional Proctor or Desktop modes |
| Visible test cases | 2 sample test cases visible; full edge and scale suite hidden |
| Code and runtime limits | 50 KB max code; C++ 2s/512 MB, Java 4s/2048 MB, Python 10s/512 MB |
| Passing threshold | No official cutoff; 1 TLE test case can advance, while 100% pass does not guarantee an invite |
| Retake policy | No published cooldown; single sitting per requisition |
| Response time | 3 to 4 weeks official goal; candidate timelines range from 1–3 days to 3+ weeks |
| Downstream stages | 1–2 CoderPad rounds, 4–6 round Virtual Onsite (3-PR Review, Core Values veto), and Team Match |
I took the 2026 Airbnb HackerRank test for a junior SWE role after solving 130 LeetCode problems. I used C++17 and passed the 60-minute task after fixing a timeout. Next, I cover the full test flow and how I got ready.
With 25 minutes left on Minimum Eating Speed, hidden TLE and an lo = 0 crash stalled my code. I checked the bounds with an online AI interview assistant. It flagged lo = 1 and a long long sum check, as shown below.
Before my test, I read Airbnb HackerRank posts from the last two years on Reddit, LeetCode Discuss, and Teamblind. My exam matched those accounts, down to the timeout traps, integer overflows, and unsubmitted-edit rules below.
The Real Questions on My Airbnb HackerRank Test
My Airbnb HackerRank SWE assessment gave me 60 minutes to solve one coding problem in C++. Here is the exact problem I got and how I worked through it.
Question 1: Minimum Eating Speed

The problem I got: I had to implement minimumEatingSpeed(candyPiles, numHours), which takes an integer array candyPiles and an integer numHours and returns the smallest positive integer eating rate c (candies per hour) needed to finish every pile within numHours. Each hour, I could eat up to c candies from at most one pile, and if a pile had fewer than c candies left, I finished that pile and waited until the next hour instead of moving on. For example, given candyPiles = [4, 9, 11, 17] and numHours = 8, the output is 6 because the piles take 1 + 2 + 2 + 3 = 8 hours at rate 6. Only two sample test cases were visible in the HackerRank runner, while the rest of the suite stayed hidden behind larger inputs.
My approach: I first wrote a linear scan starting at c = 1 to confirm my ceiling-hour math, which passed both visible samples immediately. Since that O(n * max) scan timed out on large hidden piles, I switched to binary search over [1, max(candyPiles)], because any rate faster than a valid c also finishes within numHours. Using integer ceiling division (pile + mid - 1) / mid with a long long cast and accumulator, plus starting lo at 1, kept the feasibility check exact and avoided division by zero or 32-bit overflow.
#include <algorithm>
#include <vector>
using namespace std;
int minimumEatingSpeed(const vector<int>& candyPiles, int numHours) {
if (candyPiles.empty()) return 0;
int lo = 1;
int hi = *max_element(candyPiles.begin(), candyPiles.end());
while (lo < hi) {
int mid = lo + (hi - lo) / 2;
long long hours = 0;
for (int pile : candyPiles) {
hours += (static_cast<long long>(pile) + mid - 1) / mid;
}
if (hours <= numHours) {
hi = mid;
} else {
lo = mid + 1;
}
}
return lo;
}
Time complexity: O(n log max) | Space complexity: O(1)
The initial linear scan took about 10 minutes, and after hitting Time Limit Exceeded on the hidden suite I burned nearly 20 minutes debugging why my first binary search draft crashed with lo = 0 and failed large-pile cases. With roughly 25 minutes left on the 60-minute clock, I knew binary search was the right direction, but I was stuck isolating the overflow and boundary bugs under time pressure.
I avoided desktop overlays because they draw answers on the same screen proctoring software monitors, hidden by a basic OS-layer trick. Detection capabilities vary and keep improving, so I did not want that structural risk running in the background. Instead, I pressed a keyboard shortcut on InterviewFox, my dual device AI interview helper, which auto-captured the prompt and pushed the analysis to my phone, a separate device outside the platform's screenshot monitoring. Reading the trace flagged lo = 1 and a long long sum check right away while my laptop screen stayed clean, so I patched both bugs and passed.

Land offer with Safer AI Interview Assistant
Skip the risky invisible apps. Our dual-device mode keeps it simple and undetectable. You crush the interview, we handle the answers.
Get started. It's freeLoved by 100,000+ candidates
Airbnb's Proctoring Policy for HackerRank
No camera on past tests. Airbnb's Careers FAQ lists no test rules. Past SWE HackerRank tests ran with no camera on, though optional modes change that. Because invite emails omit those settings, the full guide to whether HackerRank turns on your webcam covers which modes take snapshots and what they flag.
Always-on default logs. Every test tracks copy-paste text, paste count, window exits, exit time, and MOSS match. How do default logs stack up against stricter tiers? That full architecture is laid out in how HackerRank monitors coding tests, from baseline tracking to human review.
| Integrity Layer | Availability | What It Tracks or Blocks |
|---|---|---|
| Default Tracking | Always on | Copy/paste text and frequency, window exits, MOSS code similarity |
| Secure Mode | Optional per test | Forces fullscreen, blocks external paste, checks for single monitor |
| Proctor Mode | Optional AI add-on | 15s/5s full-screen screenshots, AI plagiarism ML model, optional 5s webcam |
| Desktop App Mode | Optional native app | Blocks VMs and screen sharing, force-closes Cluely and Ultracode, 15s webcam |
Optional AI and app modes. Some invites add Secure Mode, Proctor Mode, or Desktop App Mode. Under HackerRank Proctor Mode rules, tests snap 15-second screens to flag ChatGPT, InterviewCoder, and overlays. Desktop App Mode blocks VMs and closes Cluely and Ultracode.
Monitor checks. Stricter modes check display counts at launch. To avoid getting blocked on a dual-screen desk setup, knowing how HackerRank finds extra monitors ahead of time clarifies which modes enforce a single display.
Code size and runtime caps. Submissions cap at 50 KB, with 2 seconds for C++ and 10 seconds for Python.
12 Other Confirmed Airbnb HackerRank Questions
Each prompt below comes from confirmed SWE HackerRank rounds. This list skips Data Engineer SQL and CodeSignal 4-level tasks (Working Hours Register, Progressive Banking System, In-Memory File System, Task Management System, Recipe Management System). Earlier 2019 and October 2021 tests called Minimum Eating Speed Halloween Candy (candyPiles, numHours) or Donut Challenge.
Disk Clustering
On a January 2025 60-minute SWE Intern HackerRank test, candidates wrote clusterCosts(sectorCost, clusterCount). You split n sectors (n <= 10^5) into k groups where group x..y costs sectorCost[x] + sectorCost[y]. You return [minTotalCost, maxTotalCost].
Because the first and last costs always count, picking k - 1 cuts reduces to sorting adjacent pair sums. Quadratic DP times out, and costs up to 10^9 overflow 32-bit int sums.
#include <algorithm>
#include <vector>
using namespace std;
vector<long long> clusterCosts(const vector<int>& sectorCost, int clusterCount) {
int n = static_cast<int>(sectorCost.size());
if (n == 0) return {0, 0};
long long base = static_cast<long long>(sectorCost[0]) + sectorCost[n - 1];
vector<long long> splits;
splits.reserve(max(0, n - 1));
for (int i = 0; i + 1 < n; ++i) {
splits.push_back(static_cast<long long>(sectorCost[i]) + sectorCost[i + 1]);
}
sort(splits.begin(), splits.end());
long long minCost = base;
long long maxCost = base;
int cuts = clusterCount - 1;
for (int i = 0; i < cuts; ++i) {
minCost += splits[i];
maxCost += splits[splits.size() - 1 - i];
}
return {minCost, maxCost};
}
Time complexity: O(n log n) | Space complexity: O(n)
Module Rebuild Costs
Across ten 60-minute HackerRank tests from 2019 to 2022, candidates solved moduleRebuildCosts(dependencies). Each "module,dep1,dep2..." line maps dependencies, and you return sorted "module,cost" pairs counting unique rebuilds. Track visited nodes per start module to avoid diamond double-counting, and handle comma-free leaf rows.
Time complexity: O(V * (V + E)) worst case | Space complexity: O(V + E)
Minimum Moves
In late-2022 60-minute HackerRank tests, getMinimumMoves(maze, k) used an n x m grid (n, m, k <= 100). Each jump slides 1..k open cells in four directions from (0, 0) to (n - 1, m - 1). Plain BFS hits TLE, so stop rays at walls or shorter distances while passing equal-distance cells.
Time complexity: O(n * m * k) | Space complexity: O(n * m)
Server Selection
In late-2022 60-minute HackerRank tests, maxNetVulnerability(vulnerability) gave an n x m grid (n * m <= 10^5). You pick m - 1 rows to maximize the lowest column maximum. DP hits TLE on roughly half the suite. Binary search mid instead: every column needs >= mid, and one row needs two such columns.
Time complexity: O(n * m * log(maxVal)) | Space complexity: O(m)
Paginate Search Results
In confirmed HackerRank OAs and screens, candidates grouped host_id,listing_id,score,city CSV rows into pages. Rows arrive sorted by score, and Pass 1 picks one row per unique host up to resultsPerPage.
When unique hosts run out, Pass 2 fills the page using skipped rows in order. Spreading duplicate hosts evenly ([1, 2, 1, 2] over [1, 2, 1, 1]) fails hidden checks.
#include <list>
#include <string>
#include <unordered_set>
#include <vector>
using namespace std;
vector<string> paginateListings(const vector<string>& results, int resultsPerPage) {
list<pair<string, string>> rem;
for (const string& row : results) {
size_t comma = row.find(',');
rem.push_back({row.substr(0, comma), row});
}
vector<string> pages;
while (!rem.empty()) {
unordered_set<string> usedHosts;
int count = 0;
for (auto it = rem.begin(); it != rem.end() && count < resultsPerPage;) {
if (usedHosts.insert(it->first).second) {
pages.push_back(it->second);
it = rem.erase(it);
++count;
} else {
++it;
}
}
for (auto it = rem.begin(); it != rem.end() && count < resultsPerPage;) {
pages.push_back(it->second);
it = rem.erase(it);
++count;
}
if (!rem.empty()) pages.push_back("");
}
return pages;
}
Time complexity: O(n * p) | Space complexity: O(n)
Fraction to Recurring Decimal
Nine 60-minute HackerRank tests from 2019 to 2022 used LeetCode 166. Format numerator / denominator as a string, tracking remainder indices to wrap repeating digits in parentheses. Negating INT_MIN (-2^31) overflows 32-bit int, so cast both inputs to long long before llabs().
Time complexity: O(denominator) | Space complexity: O(denominator)
Simplified XML Validator
Across five 60-minute HackerRank tests, candidates validated <tag> and </tag> strings using a stack. Hidden tests checked exact error codes for missing close tags, mismatches, and parse failures. Read the prompt's error-code table closely before writing the parser.
Time complexity: O(n) | Space complexity: O(n)
Assigned Parking
In an August 2022 two-question C test, n <= 10^5 cars sit at (x[i], y[i]). Minimum Manhattan moves align b to median y and a to median sorted(x)[i] - i. Prompt text cited int, while the C starter returned long for 64-bit sums.
Time complexity: O(n log n) | Space complexity: O(n)
Resolve Battles
Five 2018 HackerRank OA4 tests used a Diplomacy simulation with Army Location Hold|Move Target|Support Target commands. Attacks cancel support, ties kill all sides, and output sorts by army name with [dead]. Resolve support cancellation before comparing strengths so chained moves stay consistent.
Time complexity: O(n log n) | Space complexity: O(n)
Round Prices to Match Target
Confirmed across Airbnb's HackerRank bank, this task rounds prices to match round(sum(prices)) with minimum rounding error. Floor every price first to find how many items need +1. Greedily rounding up the largest fractional parts solves it.
Time complexity: O(n log n) | Space complexity: O(n)
Longest Substring With K Distinct
In a July 2022 two-question India campus OA, candidates solved LeetCode 340. A sliding window with a frequency map drops the left character once distinct keys pass k. Guard k <= 0 up front.
Time complexity: O(n) | Space complexity: O(k)
Count Palindromic Substrings
An August 2022 two-question India campus OA asked a modified version of LeetCode 647. Center expansion counts standard palindromic substrings in O(n^2) time and O(1) space as the baseline before adding extra filter rules.
What Airbnb's HackerRank Test Format Actually Looks Like
One task in 60 minutes. Most SWE Intern and Campus HackerRank tests give one coding problem in 60 minutes. There are zero MCQs. Select 2022 campus rounds had two tasks, and one L4 loop gave 90 minutes.
Four-to-seven-day deadline. Invite links expire in 4 to 7 days. Four days is common on dated SWE invites. You pick Python 3, Java, C++, JS, TS, Go, or C inside a 50 KB cap.
Check your invite domain. SWE HackerRank links open hackerrank.com for coding tasks. Full-time New Grad waves on app.codesignal.com run a 90-minute 4-level project with camera checks. Data Engineer HackerRank runs SQL and Python.
| Track | Platform | Length and Questions | Camera / ID |
|---|---|---|---|
| SWE Intern / Campus / Select SWE | HackerRank (hackerrank.com) |
60 min (90 min L4), 1–2 coding problems | No webcam reported on past SWE tests |
| 2026 Full-Time / New Grad Waves | CodeSignal (app.codesignal.com) |
90 min, 1 4-level progressive ICA | Camera, screen share, mic, and ID required |
| Data Engineer | HackerRank (hackerrank.com) |
~60 min, 3–4 SQL + 1–2 Python tasks | Per test configuration |
How Airbnb's HackerRank Scoring Works

As the chart above shows, passing every test case is neither required nor enough on Airbnb HackerRank. Some candidates with one TLE moved on, while several 100% passes still failed post-OA resume checks.
No cutoff or feedback. Airbnb's Careers FAQ shares no pass mark or rejection notes. Automated test scores clear the first gate, then recruiters check resumes and open seats.
Timeout code-loss trap. Under HackerRank timeout rules, unrun code is ignored when time ends. Edits made after an earlier Submit revert to the older snapshot unless you click Submit again.
One sitting, no retake. Airbnb lists no HackerRank retake window or cooldown. Unlike CodeSignal's two tries per 180 days, each HackerRank link allows one sitting per role.
Why Candidates Fail the Airbnb HackerRank Assessment
AI Overlays and Code Resets Trigger ML Flags
Desktop overlays create structural risk because they draw answers on the same screen proctors check. As covered above, even with no camera, Proctor screenshots and Desktop App blocks already target overlays like Cluely.
Default MOSS similarity checks also run next to an 85% precision AI Plagiarism model. That model flags Suspicious Code Resetting, Conversation Detection, and Keystroke Codeplayer replays. Later on, Airbnb engineers even quiz candidates on their own OA code's speed.
While Airbnb hides its test flags, outside tests show clear overlay limits. Screen sharing in this Cluely review showed the app panel beside the call. Tests in this Parakeet AI review showed a Zoom entire-screen leak and an August 2026 HackerRank block.
Desktop overlays still paint answers onto the monitored screen through a basic OS-layer trick. Because detection methods keep evolving, that on-screen exposure carries shifting risk. InterviewFox instead isolates answers on a phone, keeping them outside screenshot and session monitoring.
Land offer with Safer AI Interview Assistant
Skip the risky invisible apps. Our dual-device mode keeps it simple and undetectable. You crush the interview, we handle the answers.
Get started. It's freeLoved by 100,000+ candidates
Timeout Edits and Visible Samples Drop Submissions
One candidate passed 10 of 11 tests on Airbnb HackerRank. He commented out working code to test a speedup and ran out of time. Since HackerRank drops unsubmitted edits after an earlier Submit, late tweaks wipe out working passes.
Trusting the two visible samples causes a similar trap. Brute-force loops on Donut Challenge and unpruned BFS on Minimum Moves pass both samples. They still hit TLE on hidden 10^5 suites, just like O(n^2) DP on Disk Clustering.
32-Bit Overflow and Spec Misreads Break Hidden Tests
Large 10^9 inputs break 32-bit int sums across Disk Clustering, Minimum Eating Speed, and Assigned Parking. On Assigned Parking, the prompt named int while the C starter returned long for 10^5 cars.
Small prompt rules also fail hidden checks when rushed. Missing leaf-row parsing in Module Rebuild Costs breaks valid code. Changing tie order in Paginate Search Results also fails hidden tests.
How to Prepare for the Airbnb HackerRank in 3 Days
Airbnb's tightest confirmed HackerRank deadline is four days across five dated invites. That leaves three full prep days plus a one-day buffer before submission. Before the OA, I also texted Airbnb's confirmed question patterns to InterviewFox's Prep Agent on WhatsApp or SMS. In return, I got a personalized drill plan and strategy for those three days.
Day 1: Confirm HackerRank Track, Sandbox Rules, and Binary Search Speed
Checking your invite domain early stops you from drilling the wrong format. I confirmed hackerrank.com on my invite, then ran a 15-minute sample to test long long input and Submit.
Next, I solved two 35-minute Binary Search on Answer drills modeled on Minimum Eating Speed and Server Selection. My check was logging a clean Submissions entry with zero tab exits and passing 10^9 tests under 40 minutes.
- I skipped 4-level CodeSignal OOP drills like Working Hours Register and Progressive Banking System because
hackerrank.comtests algorithms, not CodeSignal projects. - I skipped SQL window functions and System Design for these three days because SQL fits Data Engineer tests and System Design starts at the onsite.
Day 2: Drill DAG Memoization, Pruned BFS, and 10^9 Overflow Traps
With only two visible samples, O(n^2) loops and diamond double-counting fail hidden tests silently. I ran three 35-minute drills on Disk Clustering, Module Rebuild Costs, and Minimum Moves. That covered greedy cuts, DAG visited sets, and pruned BFS.
I also practiced exact-order ties from Paginate Search Results and INT_MIN casts from Fraction to Recurring Decimal. My check was passing 10^5 and 10^9 stress tests in O(n log n) or O(V + E) with zero overflows.
Day 3: Run a 60-Minute Modular Simulation With a T-3 Submit Lock
Airbnb engineers inspect variable names, helper functions, and later quiz your OA code complexity. I sat one strict 60-minute mock in a single browser tab. I wrote clean helpers with no outside editor.
To beat the timeout rule, I froze code edits at minute 55. Then I ran k = 1, empty-input, and 10^9 checks. My check was passing all stress cases and clicking final Submit by minute 57.
What Happens After You Submit the OA

The timeline above shows how Airbnb paces replies from the OA screen through onsite loops and team match.
Responses Arrive in 1–3 Days or Ghost Past 3 Weeks
Airbnb's Careers FAQ aims for 3 to 4 weeks and shares no rejection notes across 15,000 monthly applications. Wait times split wide. Fast rejects and CoderPad invites land in 1 to 3 days, while others stall past 3 weeks.
Check your spam folder every day after submitting. One candidate's CoderPad invite sat in spam for a week until Airbnb closed the job. Also verify emails come from @airbnb.com or @ext.airbnb.com, since recruiters never ask for bank info or SSNs.
Four Post-OA Stages Lead to Up to 6-Month Team Match
Passing the OA leads to CoderPad screens. Full-time roles take one 45-to-60-minute screen, while interns take two 45-minute rounds. Code must compile and run on tasks like 10 Wizards, Pour Water, Split Stay, or Alien Dictionary.
Next comes a 4-to-6-round Virtual Onsite. It covers coding, System Design, two Core Values chats, and a 3-PR Code Review. Outside-team Core Values interviewers hold veto power, testing traits like Champion the Mission and Be a Host.
In the 3-PR Code Review, catching logic, race, and error bugs outranks style notes, with PR 3 weighted highest. Team Match can take six months.
Airbnb May Inspect Your HackerRank Code in Later Rounds
Treat your HackerRank file like live interview code rather than throwaway scratch work. Airbnb engineers have pulled up candidates' submitted OA code in later interviews to quiz time complexity and possible speedups.
That habit lines up with the rest of Airbnb's loop. Senior loops stress clear variable names and clean helpers from day one. Onsite coding demands runnable code, not pseudocode. Even the 3-PR Code Review rewards safe error handling and thread safety, so clean OA habits pay off twice.
FAQ
Does Airbnb use HackerRank or CodeSignal in 2026?
Airbnb uses both platforms across different 2026 hiring tracks. SWE Intern, Campus, and select SWE roles get hackerrank.com invites. Full-Time and New Grad waves often get app.codesignal.com tests. Data Engineer roles get HackerRank SQL and Python.
Does the Airbnb HackerRank OA require a webcam?
Past Airbnb SWE HackerRank tests ran with no webcam on. Still, HackerRank offers optional Proctor Mode (5-second snapshots) and Desktop App Mode (15-second snapshots) per role. Check your pre-test screen for camera prompts before you begin.
Can I use an AI tool or invisible app during the Airbnb HackerRank OA?
HackerRank Desktop App Mode blocks Cluely, Proctor Mode snaps 15s/5s overlay screens, and ML flags suspicious code resets. Desktop overlays use basic OS-layer hiding on the monitored screen, where detection keeps advancing. InterviewFox sends answers to a separate phone beyond screenshot and session monitoring, keeping your screen clean. Dual-device mode keeps answers off your display.
Land offer with Safer AI Interview Assistant
Skip the risky invisible apps. Our dual-device mode keeps it simple and undetectable. You crush the interview, we handle the answers.
Get started. It's freeLoved by 100,000+ candidates
Can you retake the Airbnb HackerRank OA if you fail?
Airbnb lists no retake window or cooldown for HackerRank tests. Each invite link works for one sitting tied to that job posting. Unlike CodeSignal's two tries per 180 days, you cannot reuse a HackerRank score across waves.
What programming languages can I use on Airbnb's HackerRank test?
Airbnb HackerRank SWE tests let you choose your language freely unless a role states otherwise. Supported options include Python 3, Java 8/17/21, C++11 through C++23, JavaScript, TypeScript, Go, and C. Also, every submission must stay under 50 KB.
What score passes the Airbnb HackerRank assessment?
Airbnb publishes no passing score for its HackerRank OA. Candidates with one TLE or missed edge test have still reached CoderPad or onsite rounds. At the same time, passing 100% of test cases does not guarantee an invite when headcount or resume filters apply.