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

SDE - 1

Walmart
upvote
share-icon
3 rounds | 5 Coding problems

Interview preparation journey

expand-icon
Journey
In the beginning, I started learning about basics concept including array, string, stack, queue and solving questions on hackerrank and after becoming confident in these basic topic I move to the next set of topic including link list, tree, graph, dp, etc. I started practicing these topic on Geeksforgeeks, leetcode, codeforces.
Application story
It was a pool campus drive. I filled out the google application form and 25 students were shortlisted for the interview from my college.
Why selected/rejected for the role?
I was selected for this role because of my technical skills and my leadership skills as I was able to demonstrate my technical skills and how my team worked together on our project.
Preparation
Duration: 2 months
Topics: Java, MySQL, HTML, CSS, JavaScript, Nodejs, Python
Tip
Tip

Tip 1 : For OOPS, DS and programming, I recommend Codezen, Leetcode, InterviewBit and GeeksforGeeks.
Tip 2 : For OS, DBMS and Computer Network, I recommend GateSmasher, Knowledge Gate and TutorialsPoint.
Tip 3 : For SQL, I recommend W3Schools and GeeksforGeeks.
Tip 4 : Always maintain your cool during Interviews, and answer the questions calmly. If you get stuck in a problem, do not hesitate to ask for hints.

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

Tip 1: Mention only those projects and internships in your resume that you are comfortable with, that is, you can explain to the interviewee.
Tip 2: Mention only those skills/programming languages in your resume that you are comfortable with, that is, you have proper knowledge of as the interviewee can ask questions from those languages specifically.
Tip 3: Keep your data in your resume honest and accurate.

Interview rounds

01
Round
Medium
Online Coding Test
Duration90 mins
Interview date5 Jan 2022
Coding problem3

The coding round consisted of 3 coding questions. 1st question was of 20 marks, 2nd and 3rd of 50 marks.

1. Minimum Operations To Make Array Equal

Easy
10m average time
90% success
0/40
Asked in companies
OracleDunzoSprinklr

You are given an array ‘ARR’ of length ‘N’ which is filled with the values such that ARR[i] = (2*i + 1). You have to perform operations on the ‘ARR’ to make all elements of the array equal. In one operation, you can choose two elements from the array ‘ARR’ say ‘i’ and ‘j’, and can increment the value of ‘ARR[i]’ by one and decrement the value of ‘ARR[j]’ by one.

You have to find the minimum number of operations to make all the elements of the array ‘ARR’ equal. It is guaranteed that all elements of the array can be made equal using some operations.

Problem approach

I solved using bit manipulation technique

Try solving now

2. Avoiding traps

Moderate
25m average time
60% success
0/80
Asked in companies
Deutsche BankAmerican ExpressMicrosoft

Given an array of 'N' elements 'OBSTACLES', where each element represents the coordinate of the obstacle on a straight line. We start jumping from point 0 and we need to reach the end of the line avoiding all the obstacles which are present on the line. The length of every jump should be the same. For example, if we jump from 0 to 3, the jump is of 3 units hence the next jump should also be of 3 units that is from 3 to 6 and so on.

Find the minimum length of the jump so that we can reach the end of the line avoiding all obstacles.

Note:
1.The end will be a minimum possible coordinate, greater than the maximum element in the given array of elements.

2.Avoiding obstacles means that we cannot stop at the given coordinates.

3.The elements may not be in sorted order.

4.The last jump can be of any unit, provided it crosses the endpoint.
Problem approach

I first made an array in the main function that will contain the number of prime numbers less than or equal to the index value of the array and passed into my called function. This will give me the a value for each test case. Then, int the called function I applied dynamic programming. I created a dp array and initialized all values to max integer (dp[0] = 0). For each index i, i put dp[i+1] if (i=(r1/r2)) equal to minimum of(dp[i]+1, dp[i+1/i+2/i+a]). Then I returned dp[n-1] if it wasnt equal to max integer otherwise i returned "No way!".

Try solving now

3. Longest Consecutive Sequence

Moderate
40m average time
70% success
0/80
Asked in companies
WalmartOptumAmazon

You are given an unsorted array/list 'ARR' of 'N' integers. Your task is to return the length of the longest consecutive sequence.

The consecutive sequence is in the form ['NUM', 'NUM' + 1, 'NUM' + 2, ..., 'NUM' + L] where 'NUM' is the starting integer of the sequence and 'L' + 1 is the length of the sequence.

Note:

If there are any duplicates in the given array we will count only one of them in the consecutive sequence.
For example-
For the given 'ARR' [9,5,4,9,10,10,6].

Output = 3
The longest consecutive sequence is [4,5,6].
Follow Up:
Can you solve this in O(N) time and O(N) space complexity?
Problem approach

Dynamic programming and recursion concept

Try solving now
02
Round
Easy
Video Call
Duration45 mins
Interview date6 Jan 2022
Coding problem1

1. OOPs Questions

The interview contained mostly data structures and oops problems. I was asked to implement the node class of linked list and queue using circular array. He also asked me to explain polymorphism in detailing, overriding, overloading, runtime polymorphism etc with example. He asked some other questions which were mostly from DS and OOPS.

03
Round
Medium
Video Call
Duration45 mins
Interview date6 Jan 2022
Coding problem1

The interview was online from home.
There were a few audio cuts in the video call but we were able to manage regardless.

1. Reverse the String

Easy
15m average time
85% success
0/40
Asked in companies
SAP LabsWalmartFacebook

You are given a string 'STR'. The string contains [a-z] [A-Z] [0-9] [special characters]. You have to find the reverse of the string.

For example:

 If the given string is: STR = "abcde". You have to print the string "edcba".
follow up:
Try to solve the problem in O(1) space complexity. 
Problem approach

He asked me to write a function to reverse a string of size n. In this question I defined my string ans="" , then iterated i from n-1 to 0 and concatenated Character.toString(s.charAt(i)) to my ans and then returned ans. He followed up the question. He said “If I remove ' ”="" ' in string ans line then what will happen. I answered that it will give me a compilation error that the variable "ans" is not initialized. Then he asked what it means that a string is immutable.

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
SDE - 1
5 rounds | 6 problems
Interviewed by Walmart
4667 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 10 problems
Interviewed by Walmart
4972 views
0 comments
0 upvotes
company logo
SDE - 1
5 rounds | 8 problems
Interviewed by Walmart
914 views
0 comments
0 upvotes
company logo
SDE - 1
5 rounds | 8 problems
Interviewed by Walmart
1361 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 1
5 rounds | 12 problems
Interviewed by Amazon
115097 views
24 comments
0 upvotes
company logo
SDE - 1
4 rounds | 5 problems
Interviewed by Microsoft
58237 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes