What they ask
The ML scientist's final-round coding interview was a HackerRank session with the screen shared, and AI assistance was allowed, including an agent mode that writes the code. So was searching the web. The prompt was a multi-armed bandit simulation.
The question bank's version spells it out. We could not check it against a first-hand account. There are K arms, each paying one with its own probability, and T rounds, with a random generator seeded from the input. The policy is UCB1: every arm once, then the arm with the best mean plus the exploration bonus. You print the total reward at the end. It gives the exact input lines and the formula, and warns that the arm count and the reward setup change from one interview to the next, and so does the expected output.
HackerRank's case study names other Wayfair tasks: a feature in a mature codebase, or training a small model.
What decides it
The questions come after the code. The coding is not hard, the candidate wrote. There are many follow-ups. You have to explain the common multi-armed bandit strategies clearly. They did not get an offer. Their report does not put that down to this round. The question bank lists the follow-ups: what the exploration term in UCB1 does, its regret, continuous rewards, a huge number of arms, arms whose probabilities drift, and implementing Thompson sampling to compare.
Wayfair's guidelines ask you to be ready to explain the prompts you use and the technical choices you make. In HackerRank's case study, its interviewers describe weaker candidates as treating the AI as an autopilot, accepting its suggestions without understanding what changed. We do not know how the coding and the conversation are weighted, or how long the round is.
How we would prepare
Be able to derive UCB1, the mean plus the bonus, on a whiteboard. Know why the bonus has the log of the round and the square root of the pull count in it, and what happens to it as pulls accumulate. Then implement Thompson sampling once by hand, with a Beta posterior per arm. Sample from each and pull the largest. Know what it does better than UCB1 and what it needs that UCB1 does not.
Drifting arms are on the question bank's list too. A sliding window or a discount on old observations will do, as long as you can say what forgetting costs in exploration. And make the simulation reproducible on purpose. Use one generator and one draw per round after the arm is chosen, so the interviewer can check a number.
If you have a round like this at another company too, the AI coding interview guide says how theirs differs.
Frequently asked, briefly answered
Does Wayfair allow AI in coding interviews?
In some of them. Wayfair's guidelines say its live coding assessments may incorporate generative AI tools such as ChatGPT, Gemini and GitHub Copilot, and that for certain roles it encourages their transparent use. Outside those assessments it asks you not to use AI-generated answers in phone and virtual interviews. The guidelines have allowed AI in some live coding since at least September 2025.
Is the Wayfair HackerRank round the same for software engineers?
We do not know yet. Two software engineering candidates posted in August and October 2026 about live coding rounds on HackerRank and asked about its AI assistant. One was an intern, the other a Software Engineer II. Neither has described the round since.
What else is in the Wayfair ML loop?
ML case studies heavy on product sense, in the September account. This page covers only the coding round.
Practice problems tagged for Wayfair
Our Multi-Armed Bandit Simulation starts from that account and the question bank's prompt. Its first part is UCB1 on a seeded generator, checked to the last reward. Then you add Thompson sampling on the same contract. Last come arms that drift, with a sliding-window policy that forgets. The task and the follow-up topics are from the account and the question bank. The function signature in place of standard input, the fixed order of the random draws and the two later parts are ours. It is in the catalog. You can browse it without an account and sign in to solve it.
Had this round recently? Tell us how it went and we will add it here.