Problem database last updated: June 20, 2025

WWayfair logo

Wayfair Coding Interview Questions

20 problems · 5 Easy, 13 Medium, 2 Hard · Ranked #94 of 458

Difficulty breakdown

5 Easy

25% · avg 23%

13 Medium

65% · avg 59%

2 Hard

10% · avg 18%

Top topics

string
60%2.1x
array
35%
dynamic-programming
25%
two-pointers
25%1.8x
math
15%
hash-table
15%

Interview profile

Based on 20 reported problems, Wayfair interviews are in line with industry averages - 10% Hard vs 18% overall. The majority (65%) of questions are Medium difficulty, which is typical for companies that want to see solid fundamentals without excessive trick questions.

Compared to the industry average, Wayfair puts unusual emphasis on simulation (10% of problems, 2.3x the industry average), string (60% of problems, 2.1x the industry average), sliding-window (10% of problems, 2.1x the industry average). If you're short on time, these are the categories to double down on.

The most common topics are string (60%), array (35%), dynamic-programming (25%), two-pointers (25%). Problems below are sorted by frequency, the ones at the top are asked most often.

All 20 problems

Maximum Product Subarray

Solve

Given an integer array nums, find a subarray that has the largest product, and return the product.

MediumVery Likely
arraydynamic-programming

Largest Magic Square

Solve

A k x k magic square is a k x k grid filled with integers such that every row sum, every column sum, and both diagonal sums are all equal. The integers in the m...

MediumVery Likely
arraymatrixprefix-sum

Minimum Moves to Reach Target Score

Solve

You are playing a game with integers. You start with the integer 1 and you want to reach the integer target.

MediumVery Likely
mathgreedy

Delete Characters to Make Fancy String

Solve

A fancy string is a string where no three consecutive characters are equal.

EasyVery Likely
string

Longest Happy String

Solve

A string s is called happy if it satisfies the following conditions:

MediumVery Likely
stringgreedyheap-priority-queue

Maximum Number of Balloons

Solve

Given a string text, you want to use the characters of text to form as many instances of the word "balloon" as possible.

EasyVery Likely
hash-tablestringcounting

Alert Using Same Key-Card Three or More Times in a One Hour Period

Solve

LeetCode company workers use key-cards to unlock office doors. Each time a worker uses their key-card, the security system saves the worker's name and the time...

MediumVery Likely
arrayhash-tablestring

Best Sightseeing Pair

Solve

You are given an integer array values where values[i] represents the value of the ith sightseeing spot. Two sightseeing spots i and j have a distance j - i betw...

MediumVery Likely
arraydynamic-programming

Add Strings

Solve

Given two non-negative integers, num1 and num2 represented as string, return the sum of num1 and num2 as a string.

EasyVery Likely
mathstringsimulation

Longest Palindromic Substring

Solve

Given a string s, return the longest palindromic substring in s.

MediumVery Likely
two-pointersstringdynamic-programming

Group Anagrams

Solve

Given an array of strings strs, group the anagrams together. You can return the answer in any order.

MediumLikely
arrayhash-tablestring

Reaching Points

Solve

Given four integers sx, sy, tx, and ty, return true if it is possible to convert the point (sx, sy) to the point (tx, ty) through some operations, or false othe...

HardLikely
math

Valid Palindrome

Solve

A phrase is a palindrome if, after converting all uppercase letters into lowercase letters and removing all non-alphanumeric characters, it reads the same forwa...

EasyLikely
two-pointersstring

Maximum Number of Vowels in a Substring of Given Length

Solve

Given a string s and an integer k, return the maximum number of vowel letters in any substring of s with length k.

MediumLikely
stringsliding-window

Longest Increasing Subsequence

Solve

Given an integer array nums, return the length of the longest strictly increasing subsequence.

MediumLikely
arraybinary-searchdynamic-programming

Reverse Words in a String

Solve

Given an input string s, reverse the order of the words.

MediumLikely
two-pointersstring

Sliding Window Maximum

Solve

You are given an array of integers nums, there is a sliding window of size k which is moving from the very left of the array to the very right. You can only see...

HardLikely
arrayqueuesliding-window

Last Person to Fit in the Bus

Solve

Table: Queue

MediumLikely
database

Backspace String Compare

Solve

Given two strings s and t, return true if they are equal when both are typed into empty text editors. '' means a backspace character.

EasyLikely
two-pointersstringstack

Palindromic Substrings

Solve

Given a string s, return the number of palindromic substrings in it.

MediumLikely
two-pointersstringdynamic-programming

How often are these problems asked?

Frequency scores are based on crowdsourced interview reports. A higher score means the problem has been reported more often in recent Wayfair interviews.

Very Likely

75-100%

Likely

50-74%

Sometimes

25-49%

Rare

0-24%

Preparing for your Wayfair coding interview

Wayfair interviews focus heavily on string, array, dynamic-programming problems. If you're short on time, these are the categories to prioritize. The problems on this page are sorted by frequency, so start from the top and work your way down.

Beyond solving problems, practice explaining your approach. Wayfair interviewers care about your thought process - how you break down a problem, consider edge cases, and evaluate tradeoffs between solutions. A clean O(n) solution you can explain clearly beats an O(log n) solution you can't articulate.

Looking for more companies? Browse all 458 companies in our directory, or sharpen your fundamentals with our free data structure visualizers and AI-powered DSA tutor.

Frequently Asked Questions

What coding problems does Wayfair ask in interviews?add

Wayfair has been reported to ask 20 distinct coding problems. The most common topics are string, array, dynamic-programming. 5 are Easy difficulty, 13 are Medium, and 2 are Hard. Problems are sorted by frequency - the ones at the top are asked most often.

How hard are Wayfair coding interviews?add

Based on 20 reported problems, Wayfair interviews are in line with industry averages - 10% Hard vs 18% overall. 65% of questions are Medium difficulty. Focus on the high-frequency Medium problems first, then work through the Hard ones.

How should I prepare for a Wayfair coding interview?add

Start with the highest-frequency problems listed on this page. Focus on the core topics: string, array, dynamic-programming. Practice solving them under time pressure and explaining your approach out loud. Mock interviews with AI can simulate the real experience.

Other companies to explore

Ready to ace your Wayfair interview?

Simulate a real Wayfair coding interview with an AI interviewer. Get a scorecard with specific feedback on your problem-solving, code quality, and communication.

Simulate a Wayfair interview with AIarrow_forward