Walmart interview experience Real time questions & tips from candidates to crack your interview

Software Engineer III

Walmart
upvote
share-icon
2 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 6 Months
Topics: OOPs Concepts, DS & Algo (Array, LinkedList, Tree, String, Stack, Queue, Dynamic Programming),High Level System Design (Different AWS services like EC2, API Gateway, Load Balancer, Auto Scaling Group, RDS, S3 bucket )Low Level System Design- ( Design patterns - Singleton, Factory, Strategy, Class Diagram, Activity Diagram )Database concepts ( ACID properties, CAP theorem, SQL queries )
Tip
Tip

Tip 1 : Practice at least 10-20 questions of DS & Also on each topic from difficulty level easy to hard.
Tip 2 : Prepare well around OOPs concepts and Database concepts.
Tip 3 : If you have 2.5+ year of experience practice around HLD and LLD.

Application process
Where: Campus
Eligibility: No Criteria
Resume Tip
Resume tip

Tip 1 : Please mention the keyword related to the work that you have done. (eg. Git, Maven, JUnit, Java, AWS )
Tip 2 : Please mention any certification that you have done. And try to keep your resume within one page.

Interview rounds

01
Round
Medium
Video Call
Duration60 minutes
Interview date25 Mar 2021
Coding problem1

All three rounds were scheduled on the same day in day time.
Interview environment was positive. Interviewer made me comfortable by asking normal question about me and the work that I have done.Overall the interview experience was really great.

1. Java Questions

This Round was based on Java related problem and concepts.

Print Odd/Even numbers in multiple threads (one by one)
ThreadPoolExecutor Implementation
Working of HashMap, HashSet
Some theory Questions Related to Exceptions/Collections/Annotations
Garbage Collector Working, Heap Memory Analyze

Problem approach

Tip 1 : Practice multithreading concepts with examples
Tip 2 : Ready garbage collection process and memory management in java
Tip 3 : Read about different collections and their different use case, this would really help in answering the questions

02
Round
Medium
Video Call
Duration60 minutes
Interview date26 Mar 2021
Coding problem2

This was the DS Algo round. It went for 1 hours in which interviewer asked two problems in which one was easy and other one was medium level problem. Overall the interview experience was good.

1. Sort Array of 0s and 1s.

Easy
10m average time
90% success
0/40
Asked in companies
WalmartCapegemini Consulting India Private LimitedCoditas

You are given an array ‘A’ of size ‘N’ containing only 0s and 1s. You have to sort the array by traversing the array only once.

For Example:
For the following array:
[0 1 1 1 0 0 1]

The output should be [0 0 0 1 1 1 1].
Note:
You have to sort the array in place.
Problem approach

Method 1 (Count 0s or 1s) :
Step1: count zeros and ones
Step2 : put zeros first in array and then 1s in array

Method 2:

Method 2 (Use two indexes to traverse) 
Maintain two indexes. Initialize the first index left as 0 and second index right as n-1.
Do following while left < right 
a) Keep incrementing index left while there are 0s at it 
b) Keep decrementing index right while there are 1s at it 
c) If left < right then exchange arr[left] and arr[right]

Try solving now

2. Zigzag Binary Tree Traversal

Easy
10m average time
90% success
0/40
Asked in companies
AmazonGoldman SachsFlexiEle Consulting Services (FE)

You are given a ‘Binary Tree’.


Return the level-order traversal of the Binary Tree.


Example:
Input: Consider the following Binary Tree:

Example

Output: 
Following is the level-order traversal of the given Binary Tree: [1, 2, 3, 5, 6, 4]


Problem approach

public List> zigzagLevelOrder(TreeNode root) {

List> ans = new ArrayList();
if(root == null ) return ans;

Deque queue = new ArrayDeque();
int count = -1;
queue.add(root);
while(!queue.isEmpty()){
List list = new ArrayList();
int n = queue.size();
if(count == -1 ){
for(int i=0; i TreeNode node = queue.removeFirst();
list.add(node.val);
if(node.left != null ) queue.addLast(node.left);
if(node.right != null ) queue.addLast(node.right);
}
}else{
for(int i=0; i TreeNode node = queue.removeLast();
list.add(node.val);

if(node.right != null ) queue.addFirst(node.right);
if(node.left != null ) queue.addFirst(node.left);
}

}
ans.add(list);
count = -count;
}
return ans;
}

Try solving now

Here's your problem of the day

Solving this problem will increase your chance to get selected in this company

Skill covered: Programming

How do you remove whitespace from the start of a string?

Choose another skill to practice
Similar interview experiences
company logo
Database Administrator
4 rounds | 8 problems
Interviewed by Walmart
1194 views
1 comments
0 upvotes
company logo
Senior Software Engineer
3 rounds | 3 problems
Interviewed by Walmart
0 views
1 comments
0 upvotes
company logo
SDE-3
5 rounds | 7 problems
Interviewed by Walmart
3770 views
1 comments
0 upvotes
company logo
SDE-3
5 rounds | 7 problems
Interviewed by Walmart
3173 views
0 comments
0 upvotes