Upload Button Icon Add office photos

Walmart

Compare button icon Compare button icon Compare

Filter interviews by

Walmart Software Engineer Interview Questions and Answers

Updated 3 Mar 2025

12 Interview questions

A Software Engineer was asked 8mo ago
Q. Given an array of integers and a window of size k, find the maximum (or minimum) of each window as it slides through the array.
Ans. 

The sliding window technique efficiently solves problems involving contiguous subarrays or substrings.

  • 1. Definition: A sliding window is a subarray or substring that moves over the input data to find a solution.

  • 2. Fixed-size window: For problems requiring a fixed number of elements, maintain a window of that size. Example: Find the maximum sum of any 3 consecutive elements in an array.

  • 3. Dynamic-size window: Adjus...

A Software Engineer was asked 9mo ago
Q. Write a for loop in C++ to print n natural numbers without using a semicolon (;).
Ans. 

Use recursion to print n natural numbers in C++ without semicolon.

  • Define a function to print natural numbers recursively.

  • Call the function inside main function with n as argument.

  • Base case: if n is less than 1, return.

  • Print n and call the function with n-1 as argument.

Software Engineer Interview Questions Asked at Other Companies

asked in Qualcomm
Q1. Four people need to cross a bridge at night with only one torch t ... read more
asked in Capgemini
Q2. In a dark room, there is a box of 18 white and 5 black gloves. Yo ... read more
Q3. Tell me something about yourself. Define encapsulation. What is i ... read more
asked in Paytm
Q4. Puzzle : 100 people are standing in a circle .each one is allowed ... read more
asked in TCS
Q5. Find the Duplicate Number Problem Statement Given an integer arra ... read more
A Software Engineer was asked 9mo ago
Q. What is SAP security?
Ans. 

SAP security refers to the measures taken to protect SAP systems and data from unauthorized access and misuse.

  • SAP security involves setting up user roles and authorizations to control access to sensitive data

  • It includes implementing encryption, authentication, and audit trails to ensure data integrity

  • Regular security assessments and updates are necessary to protect against vulnerabilities

  • Examples of SAP security t...

A Software Engineer was asked 11mo ago
Q. Implement a key-value data structure.
Ans. 

Implement a key-value structure

  • Use a hashmap or dictionary data structure to store key-value pairs

  • Implement methods to add, retrieve, update, and delete key-value pairs

  • Consider handling collisions and implementing a hashing function

  • Example: HashMap<String, Integer> keyValueMap = new HashMap<>()

A Software Engineer was asked 11mo ago
Q. Design and implement a data structure for Least Recently Used (LRU) cache. It should support the following operations: get(key) - Get the value (will always be positive) of the key if the key exists in the ...
Ans. 

Implementing an LRU Cache involves using a data structure to store key-value pairs with a limit on size, evicting the least recently used.

  • Use a combination of a hash map and a doubly linked list for efficient access and updates.

  • The hash map stores keys and pointers to the corresponding nodes in the linked list.

  • The linked list maintains the order of usage, with the most recently used at the head and least recently ...

A Software Engineer was asked 11mo ago
Q. Given the root of a binary tree, return the length of the diameter of the tree.
Ans. 

The diameter of a tree is the longest path between two nodes in a tree.

  • The diameter of a tree can be calculated by finding the longest path between two nodes in the tree.

  • It is not necessarily the path between the root and a leaf node.

  • The diameter of a tree can be calculated using Depth First Search (DFS) or Breadth First Search (BFS) algorithms.

A Software Engineer was asked
Q. Given a string s, find the length of the longest substring without repeating characters.
Ans. 

Find the longest substring in an array of strings.

  • Iterate through each string and compare with all other strings to find common substrings.

  • Use a hash table to keep track of the frequency of each substring.

  • Return the substring with the highest frequency.

Are these interview questions helpful?
A Software Engineer was asked
Q. Write a query to find the top five employee salaries.
Ans. 

Query to find the top five employee salaries

  • Use the SELECT statement to retrieve the employee salaries

  • Order the results in descending order using the ORDER BY clause

  • Limit the results to the top five using the LIMIT clause

A Software Engineer was asked
Q. What is the difference between a graph and a tree?
Ans. 

Graph is a non-linear data structure with cycles while tree is a hierarchical data structure without cycles.

  • Graph can have multiple starting points and paths between nodes while tree has only one root node and unique paths between nodes.

  • Graph can have cycles while tree is acyclic.

  • Graph can be directed or undirected while tree is always directed.

  • Examples of graphs include social networks, road networks, and compute...

A Software Engineer was asked
Q. What will happen if I write a for loop without a condition?
Ans. 

The for loop will run indefinitely without any condition to terminate it.

  • The loop will continue executing until it is manually interrupted or the program crashes.

  • This can lead to a program becoming unresponsive or consuming excessive resources.

  • It is important to always include a condition in a for loop to control its execution.

Walmart Software Engineer Interview Experiences

29 interviews found

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - One-on-one 

(2 Questions)

  • Q1. Write a for loop in cpp to print n natural numbers without using semicolon (;)
  • Ans. 

    Use recursion to print n natural numbers in C++ without semicolon.

    • Define a function to print natural numbers recursively.

    • Call the function inside main function with n as argument.

    • Base case: if n is less than 1, return.

    • Print n and call the function with n-1 as argument.

  • Answered by AI
  • Q2. A complex SQL query.

Skills evaluated in this interview

Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Basic DSA and spring boot questions

Round 2 - One-on-one 

(3 Questions)

  • Q1. Coco eating banana (Leetcode)
  • Q2. Remove duplicate numbers from an array
  • Q3. Implement key-value structure
  • Ans. 

    Implement a key-value structure

    • Use a hashmap or dictionary data structure to store key-value pairs

    • Implement methods to add, retrieve, update, and delete key-value pairs

    • Consider handling collisions and implementing a hashing function

    • Example: HashMap<String, Integer> keyValueMap = new HashMap<>()

  • Answered by AI

Interview Preparation Tips

Interview preparation tips for other job seekers - Keep your basics clear

Skills evaluated in this interview

Software Engineer Interview Questions & Answers

user image Kalpit Bhanawat

posted on 5 Sep 2024

Interview experience
4
Good
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Graph question was asked
  • Q2. Tree Question was asked
Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

LinkedList add numbers

Round 2 - One-on-one 

(2 Questions)

  • Q1. Multithreaded question
  • Q2. More multithreading questions
Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Tell about yourself
  • Q2. What is sap security
Interview experience
2
Poor
Difficulty level
Moderate
Process Duration
2-4 weeks
Result
No response

I applied via Referral and was interviewed in Feb 2024. There were 5 interview rounds.

Round 1 - Coding Test 

Coding test in Karat platform - 1 hr duration

Round 2 - One-on-one 

(1 Question)

  • Q1. Coding round with Walmart SDE - asked to build a search functionality
Round 3 - One-on-one 

(1 Question)

  • Q1. Coding round - Javascript based
Round 4 - One-on-one 

(1 Question)

  • Q1. Coding round - asked to find a bug in a code and make it run
Round 5 - One-on-one 

(1 Question)

  • Q1. Managerial round - basic questions about previous projects.

Software Engineer Interview Questions & Answers

user image Namrata Khanal

posted on 27 Sep 2024

Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Technical 

(2 Questions)

  • Q1. Singleton Class
  • Q2. Overiding and Overloading
Interview experience
3
Average
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Prepare LC - Easy and Medium Questions based on arrays, linked list and graphs.

Round 2 - Technical 

(1 Question)

  • Q1. Technical Round based on your stream, if you are applying for Java developer then questions related to Java and LLD discussions
Round 3 - Behavioral 

(1 Question)

  • Q1. Previous Project Discussion and Behavioral questions
Round 4 - HR 

(1 Question)

  • Q1. Behavioral and Salary Negotiation

Software Engineer Interview Questions & Answers

user image cherma prabhu

posted on 18 Jan 2025

Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Questions will be on data structures.

Round 2 - System Design 

(1 Question)

  • Q1. System design of web apps
  • Ans. 

    System design of web apps involves planning the architecture, components, and interactions of a web application.

    • Understand the requirements and constraints of the web app

    • Identify the key components such as frontend, backend, database, and APIs

    • Design the architecture considering scalability, performance, security, and maintainability

    • Choose appropriate technologies and frameworks for each component

    • Consider factors like l...

  • Answered by AI
Interview experience
5
Excellent
Difficulty level
-
Process Duration
-
Result
-
Round 1 - Coding Test 

Data Structures and Algorithms , OOPS concepts

Round 2 - Technical 

(2 Questions)

  • Q1. Reverse linked list
  • Q2. Classes and objects difference

Top trending discussions

View All
Interview Tips & Stories
6d (edited)
a team lead
Why are women still asked such personal questions in interview?
I recently went for an interview… and honestly, m still trying to process what just happened. Instead of being asked about my skills, experience, or how I could add value to the company… the questions took a totally unexpected turn. The interviewer started asking things like When are you getting married? Are you engaged? And m sure, if I had said I was married, the next question would’ve been How long have you been married? What does my personal life have to do with the job m applying for? This is where I felt the gender discrimination hit hard. These types of questions are so casually thrown at women during interviews but are they ever asked to men? No one asks male candidates if they’re planning a wedding or how old their kids are. So why is it okay to ask women? Can we please stop normalising this kind of behaviour in interviews? Our careers shouldn’t be judged by our relationship status. Period.
Got a question about Walmart?
Ask anonymously on communities.

Walmart Interview FAQs

How many rounds are there in Walmart Software Engineer interview?
Walmart interview process usually has 2-3 rounds. The most common rounds in the Walmart interview process are Coding Test, One-on-one Round and Technical.
How to prepare for Walmart Software Engineer interview?
Go through your CV in detail and study all the technologies mentioned in your CV. Prepare at least two technologies or languages in depth if you are appearing for a technical interview at Walmart. The most common topics and skills that interviewers at Walmart expect are Information Technology, SQL, Data Structures, Information Security and Computer Networking.
What are the top questions asked in Walmart Software Engineer interview?

Some of the top questions asked at the Walmart Software Engineer interview -

  1. what will happen if I write without condition in for lo...read more
  2. Write query to find the top five employee sala...read more
  3. difference between graph and tr...read more
How long is the Walmart Software Engineer interview process?

The duration of Walmart Software Engineer interview process can vary, but typically it takes about less than 2 weeks to complete.

Tell us how to improve this page.

Overall Interview Experience Rating

3.9/5

based on 28 interview experiences

Difficulty level

Easy 9%
Moderate 91%

Duration

Less than 2 weeks 64%
2-4 weeks 27%
4-6 weeks 9%
View more

Interview Questions from Similar Companies

Reliance Retail Interview Questions
3.9
 • 1.7k Interviews
DMart Interview Questions
3.9
 • 450 Interviews
Vishal Mega Mart Interview Questions
3.7
 • 175 Interviews
Titan Company Interview Questions
4.3
 • 166 Interviews
Croma Interview Questions
3.9
 • 154 Interviews
Reliance Digital Interview Questions
4.1
 • 144 Interviews
Lowe's Interview Questions
4.1
 • 136 Interviews
Reliance Trends Interview Questions
4.1
 • 111 Interviews
JioMart Interview Questions
3.9
 • 102 Interviews
Trent Interview Questions
4.0
 • 91 Interviews
View all
Walmart Software Engineer Salary
based on 941 salaries
₹19.1 L/yr - ₹35 L/yr
183% more than the average Software Engineer Salary in India
View more details

Walmart Software Engineer Reviews and Ratings

based on 77 reviews

3.5/5

Rating in categories

3.4

Skill development

3.5

Work-life balance

3.7

Salary

3.4

Job security

3.4

Company culture

2.9

Promotions

3.1

Work satisfaction

Explore 77 Reviews and Ratings
Distinguished, Software Engineer

Bangalore / Bengaluru

15-20 Yrs

Not Disclosed

Group Director, Software Engineering

Bangalore / Bengaluru

10-15 Yrs

Not Disclosed

Senior, Software Engineer - Machine Learning - Conversational AI

Bangalore / Bengaluru

7-12 Yrs

Not Disclosed

Explore more jobs
Software Engineer III
2.2k salaries
unlock blur

₹23.3 L/yr - ₹41 L/yr

Senior Software Engineer
1.7k salaries
unlock blur

₹34.4 L/yr - ₹60 L/yr

Software Engineer
941 salaries
unlock blur

₹19.1 L/yr - ₹35 L/yr

Software Developer
467 salaries
unlock blur

₹18.8 L/yr - ₹35 L/yr

Software Development Engineer 3
381 salaries
unlock blur

₹24 L/yr - ₹40 L/yr

Explore more salaries
Compare Walmart with

Amazon

4.0
Compare

Reliance Retail

3.9
Compare

DMart

3.9
Compare

Reliance Digital

4.1
Compare
write
Share an Interview