Now practice all your interviews before giving the real one

( Walmart interview questions )

Walmart interview questions, and how to answer them.

15 questions candidates report from Walmart interviews, grouped by topic, with a short note on how to answer each kind. Then say your answers out loud in a practice interview.

5 minutes, no CV needed. A practice round, not Walmart's own.

What Walmart interviews ask, in our data

Our bank holds 93 coding questions that candidates report from Walmart interviews. The topics that come up most: arrays & hashing (17), dynamic programming, 1-D (9), sliding window (9) and math & bits (8). Of the 93 coding questions, 12 are easy, 71 medium and 10 hard.

Our data covers coding questions for Walmart; it says nothing about their other rounds, so we don't guess. These are practice questions based on what candidates report on public, community-kept lists, each written in our own words. RoundAlpha is not linked to Walmart.

Coding questions
93
Easy / medium / hard
12 / 71 / 10
Top topic
Arrays & hashing
Page data updated
29 November 2026

( Questions )

15 Walmart questions to practise.

Arrays & hashing

  1. 1

    Two SumEasy

    Given an array of integers nums and an integer target, return the positions of the two numbers that add up to target.

  2. 2

    Group by LettersMedium

    Given a list of words, put words that are made of exactly the same letters, each used the same number of times, into the same group.

  3. 3

    Most Frequent TotalEasy

    Given an array nums of positive integers, return the total number of entries whose values occur most often.

Sliding window

  1. 4

    Longest Unique StretchMedium

    Given a string s, return the length of the longest stretch of consecutive characters in which no character appears twice.

Stack

  1. 5

    Balanced BracketsEasy

    A string s is made only of the characters ( ) [ ] { }. Return true if every opening bracket is closed by a bracket of the same kind, and the brackets close in the right order.

Linked list

  1. 6

    Recently Used CacheMedium

    Build a cache that holds at most capacity keys and, once it is full, makes room by throwing out the key that was used longest ago.

Graphs

  1. 7

    Count IslandsMedium

    You are given a map of the sea as a grid of "1"s and "0"s: "1" is land and "0" is water. An island is a group of land cells joined up, down, left or right.

Backtracking

  1. 8

    All Valid PairingsMedium

    Given an integer n, return every well-formed string formed from n pairs of parentheses. Each string must contain exactly n opening parentheses and n closing parentheses.

  2. 9

    Combinations That SumMedium

    You are given a list of different whole numbers, candidates, and a number target. Return every combination of candidates that adds up to exactly target.

Binary search

  1. 10

    Search a Rotated ListMedium

    nums started out as a list of different integers sorted from smallest to largest.

Two pointers

  1. 11

    Trapped RainwaterHard

    A row of bars stands side by side, each 1 unit wide; height[i] is the height of bar i. After a heavy rain, water settles in the dips between the bars.

  2. 12

    Biggest Water TankMedium

    A row of walls stands on flat ground, one metre apart; height[i] is the height of wall i.

Intervals

  1. 13

    Merge RangesMedium

    You are given a list of ranges, each written as [start, end]. Merge every group of ranges that overlap or touch, and return the merged ranges sorted by their start.

Heap

  1. 14

    Maximum Interval OverlapMedium

    The input is a 2D integer array intervals.

Dynamic programming, 1-D

  1. 15

    Longest Palindrome InsideMedium

    You are given a string s. Return the longest piece of it — a run of letters that sit next to each other in s — that reads the same forwards and backwards (a palindrome).

Want to write the code too? The Walmart list on our coding practice page runs your answer against hidden tests, in six languages.

Questions

Walmart interview: questions and answers

What coding questions does Walmart ask?

Our bank holds 93 coding questions that candidates report from Walmart interviews. The topics that come up most: arrays & hashing (17), dynamic programming, 1-D (9), sliding window (9) and math & bits (8). This page shows 15 of them, grouped by topic.

How hard are Walmart coding questions?

Of the 93 coding questions, 12 are easy, 71 medium and 10 hard. The level you meet depends on the role and your experience, so practise easy and medium ones until you can explain them out loud, then add hard ones.

Are these the real Walmart interview questions?

They are practice questions based on what candidates report from Walmart interviews on public, community-kept lists. Each one is written in our own words. RoundAlpha is not linked to Walmart, and no list can promise what a given interviewer will ask.

Can I practise a Walmart interview for free?

Yes. A new account you sign up for yourself gets one short free practice interview. Name Walmart as the company and the interviewer leans its questions toward that company. You can choose "No CV this time", so no CV is needed. You talk out loud and get a scored report at the end.

Read next

Ready when you are

Say it out loud once before it counts.

A short practice interview with Walmart named as the company, then a scored report on every answer.

5 minutes, no CV needed. A practice round, not Walmart's own.