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

SDE - 2

Walmart
upvote
share-icon
4 rounds | 13 Coding problems

Interview preparation journey

expand-icon
Journey
I've completed my M—Tech from IIIT-Delhi. So, the coding culture is very nice over there, and from the first year, we have started practicing coding. Starting with basic data structure and gradually increasing the difficulty level of different questions. In addition to that, I used to practice a lot in various coding platforms and participated in coding competitions on different platforms. So, in the last year, placement season has come, and I've cracked the Walmart. One more thing I would like to say is, Don't lose your passion, and One day you'll crack your goal company.
Application story
I've applied through On Campus Placement at my college, IIIT Delhi. Basically, the first round was an online assessment, and the shortlisting list was received within the same day. After two days, they conducted the interview process, Which was three rounds in one day. So keep yourself ready for the whole day if you have the same case as me.
Why selected/rejected for the role?
First, I am eligible for the CGPA criteria, and I've appeared for an online assessment. So, I've completed all the coding questions along with some MCQs. It helps me to shortlist for the interview round. All the interview rounds went well for me, and the panel was supportive and good. Also, I got nice feedback after every round of interviews.
Preparation
Duration: 4 months
Topics: OOPS, Data Structures, Algorithms, Dynamic Programming, Technical Subjects - Operating System, Computer Network, Database Management System, Programming & Data Structure, Aptitude, Puzzles
Tip
Tip

Tip 1: Practice every day and write everything you are not confident about.
Tip 2: Keep the consistency in coding.
Tip 3: Be confident and don't panic at the time of the Interview.

Application process
Where: Campus
Eligibility: 7.5
Resume Tip
Resume tip

Tip 1: Whatever you write in your resume, make sure you are confident enough and ready to explain it in detail.
Tip 2: Keep your resume as simple as possible. Don't go with a highly designed format.
 

Interview rounds

01
Round
Medium
Online Coding Interview
Duration70 minutes
Interview date26 Aug 2022
Coding problem2

It was in the morning 11:00 AM. Environment was quite good and no any additional disturbance was there. Internet connectivity was also decent and I was very confident about this round.

1. Maximum Path Sum Between Two Leaves

Hard
50m average time
35% success
0/120
Asked in companies
OYOAmazonMathworks

You are given a non-empty binary tree where each node has a non-negative integer value. Return the maximum possible sum of path between any two leaves of the given tree.

The path is also inclusive of the leaf nodes and the maximum path sum may or may not go through the root of the given tree.

If there is only one leaf node in the tree, then return -1.

Try solving now

2. Day 10 : Minimum Operations

Easy
20m average time
82% success
0/40
Asked in companies
MicrosoftBNY MellonLinkedIn

You are given an array 'ARR' of 'N' positive integers. You need to find the minimum number of operations needed to make all elements of the array equal. You can perform addition, multiplication, subtraction or division with any element on an array element.

Addition, Subtraction, Multiplication or Division on any element of the array will be considered as a single operation.

Example:

If the given array is [1,2,3] then the answer would be 2. One of the ways to make all the elements of the given array equal is by adding 1 to the array element with value 1 and subtracting 1 from the array element with value 3. So that final array would become [2,2,2]. 
Try solving now
02
Round
Medium
Video Call
Duration50 minutes
Interview date29 Aug 2022
Coding problem4

1. OOPS Question

Different between Polymorphism and Inheritance.(Learn)

Problem approach

Tip 1 : Explain the concepts by giving an example.
Tip 2 : Try to take a real life example so that it would be beneficial to interviewer to understand.

2. Theory Questions

How firebase is different from other databases and what makes it unique?(Learn)

Problem approach

Tip 1 : Read SQL and NoSQL concepts.
Tip 2 : Try to learn the advantages and disadvantages of all the type of database.

3. Trapping Rain Water

Moderate
15m average time
80% success
0/80
Asked in companies
RazorpayMorgan StanleyUber

You have been given a long type array/list 'arr’ of size 'n’.


It represents an elevation map wherein 'arr[i]’ denotes the elevation of the 'ith' bar.



Note :
The width of each bar is the same and is equal to 1.
Example:
Input: ‘n’ = 6, ‘arr’ = [3, 0, 0, 2, 0, 4].

Output: 10

Explanation: Refer to the image for better comprehension:

Alt Text

Note :
You don't need to print anything. It has already been taken care of. Just implement the given function.
Try solving now

4. Theory Question

Difference between Unchecked and Checked Exception.(Learn)

Problem approach

Tip 1 : Read the Compile time and Runtime Exception in java.
Tip 2 : Explain it by giving an example.

03
Round
Medium
Video Call
Duration60 minutes
Interview date29 Aug 2022
Coding problem5

1. OS Questions

What are the deadlock prevention techniques?(Learn)

Problem approach

Tip 1 : Read OS Interview question

2. Java Questions

How do you handle Exception in Java.(Learn)

Problem approach

Tip 1 : Read Exception handling Techniques

3. Java Question

What is Garbage collector in java?(Learn)

Problem approach

Tip 1 : Read Interview question in Java. It will cover all type of important theoretical question.

4. First unique character in a string

Moderate
15m average time
85% success
0/80
Asked in companies
OlaWalmartQuest Technologies

You are given a string S of length N. Your task is to find the index(considering 1-based indexing) of the first unique character present in the string. If there are no unique characters return -1.

Note

A unique character in a string is the character that appears only once in the string. For example, ‘h’, ‘e’, and ‘o’ are the unique characters in the string “hello”.
Problem approach

We will first traverse the array and then count the number of 'a', 'b', and 'c' from the elements given in the array in single traversal. We will again do traversal of an array and copy the elements in the array on the sequential basis. Finally, as we have already seen above, we need to do two times traversal of the given for sorting the elements of an array.

Try solving now

5. Shortest Alternating Path

Moderate
10m average time
90% success
0/80
Asked in companies
HSBCWalmartGoogle inc

You are given a directed graph 'G' having 'N' nodes. Each node is associated with an integer label from 0 to N - 1. Each edge of this graph is coloured either red or green colour. Your task is to find out for each node in Graph G, it’s shortest alternating distance from the node with label 0.

Note:

1. This Graph may contain self-loops and parallel edges.

2. The Graph will be directed which means it’s edges are one-directional (from some node u to some node v).

3. Alternating distance is the number of edges between two nodes such that the colours of each consecutive edge in the path are different.

4. If there is no alternating path from a node X to the node with label-0 then print -1 as an answer corresponding to that node.
Problem approach

- Initialize a 3D array that ensures that we don’t visit the same cell again and again. Also,Initialize the steps as 0.

- Initialize a queue data structure that contains a list that will be composed of the current_X coordinate, 
current_Y coordinate, and the no. of obstacles that we can destroy. Push the current cell into the queue.

- Do the following until the queue becomes empty:- 
- Pop the front element from the queue and explore this popped cell in all four directions such that the 
current_X coordinate and current_Y coordinate should not cross the boundary.
- If the current cell is 0 and not visited then explore all the directions. Push all the nonvisited cells from this 
cell into the queue. Mark this cell as visited. 
- If the current cell is 1 which means it represents a wall and this cell is not visited as well as the no of 
obstacles that we can destroy is greater than 1 which means that we can destroy this wall and then explore 
all the directions. Push all the nonvisited cells from this cell into the queue. Mark this cell as visited. 
- After each iteration increment the step value. 
- During the previous two steps, if at any time the current_X coordinate, current_Y coordinate is equal to the 
destination_X coordinate, destination_Y coordinate then return the steps.

Try solving now
04
Round
Hard
Video Call
Duration60 minutes
Interview date29 Aug 2022
Coding problem2

This round was in evening and I was very excited as it is the final round.

-

1. System Design

I've been asked to develop the working flow and model of one prototype.

- In a covid time, People have faced large amount of difficulties in terms of acquiring a medicine and treatment 
medical instrument (oxygen bottle, Remdesivir Injection etc).
- So made a working model design to overcome this problem.
- I've made a multi module protptype that will cover all the edge cases of this problem and interviewer was 
satisfy with it. (by the way It took much time to design a model).

Problem approach

Tip 1 : If you stuck in between, then you can take a help of interviewer. 
Tip 2 : If you are not familiar with the concept or you don't know it properly, then simply say "No". It's better 
sometime to answer incomplete.

2. Project Based Question

- What brings you to do a project on the particular domain
- How is your project different from others
- What is your contribution to the project
- What is the major challenge you have faced in the project, and how you have solved it (In detail)
- What is the future scope of your project?

Here's your problem of the day

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

Skill covered: Programming

What is recursion?

Choose another skill to practice
Similar interview experiences
company logo
SDE - 2
3 rounds | 6 problems
Interviewed by Walmart
3037 views
1 comments
0 upvotes
company logo
SDE - 2
4 rounds | 4 problems
Interviewed by Walmart
1943 views
1 comments
0 upvotes
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Walmart
2777 views
0 comments
0 upvotes
company logo
SDE - 2
2 rounds | 7 problems
Interviewed by Walmart
1258 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
6677 views
1 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
5175 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 7 problems
Interviewed by Dunzo
3111 views
0 comments
0 upvotes