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

SDE - 1

Walmart
upvote
share-icon
3 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 Months
Topics: Data Structures , Trees, Graph , Dynamic Programming , OS , DBMS , CN
Tip
Tip

Tip 1 : Make Sure Your data structures concepts are crystal clear 
Tip 2 : Don't fake anything in your resume 

Application process
Where: Linkedin
Eligibility: Nothing i guess, I had cgpa 8.4 so may be a criteria of 7+ cgpa
Resume Tip
Resume tip

Tip 1 : Resume must be atleast ATS friendly 
Tip 2 : Your Linkedin is your resume , make sure you had a great profile there , I was reached out by a recruiter

Interview rounds

01
Round
Medium
Online Coding Interview
Duration90 minutes
Interview date2 May 2022
Coding problem3

It was an online test of 90 minutes and was conducted on Hackerearth. It consisted of 10 MCQ’s and 3 coding questions. MCQ’s consisted of general aptitude questions, questions related to networking, programming , dbms.

1. Find Number Of Islands

Moderate
34m average time
60% success
0/80
Asked in companies
WalmartShareChatAmazon

You are given a 2-dimensional array/list having N rows and M columns, which is filled with ones(1) and zeroes(0). 1 signifies land, and 0 signifies water.

A cell is said to be connected to another cell, if one cell lies immediately next to the other cell, in any of the eight directions (two vertical, two horizontal, and four diagonals).

A group of connected cells having value 1 is called an island. Your task is to find the number of such islands present in the matrix.

Problem approach

I applied simple DFS here and passed all the test cases

Try solving now

2. Sort 0 1 2

Easy
22m average time
0/40
Asked in companies
Expedia GroupWalmartHCL Technologies

You have been given an integer array/list(ARR) of size 'N'. It only contains 0s, 1s and 2s. Write a solution to sort this array/list.

Note :
Try to solve the problem in 'Single Scan'. ' Single Scan' refers to iterating over the array/list just once or to put it in other words, you will be visiting each element in the array/list just once.
Try solving now

3. Detect and Remove Loop

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

Given a singly linked list, you have to detect the loop and remove the loop from the linked list, if present. You have to make changes in the given linked list itself and return the updated linked list.

Expected Complexity: Try doing it in O(n) time complexity and O(1) space complexity. Here, n is the number of nodes in the linked list.

Problem approach

Tip 1 : Floyd’s Cycle-Finding Algorithm 

Traverse linked list using two pointers.
Move one pointer(slow_p) by one and another pointer(fast_p) by two.
If these pointers meet at the same node then there is a loop. If pointers do not meet then linked list doesn’t have a loop.

Try solving now
02
Round
Medium
Video Call
Duration60 minutes
Interview date4 May 2022
Coding problem3

The round started from introduction of both , he introduced himself , he was senior software engineer having 4 years of experience . He asked me 2 dsa question out of which one was leetcode easy and other was medium level

1. Best Time to Buy and Sell

Moderate
20m average time
80% success
0/80
Asked in companies
HCL TechnologiesGoldman SachsMakeMyTrip

You are given an array(PRICES) of stock prices for N consecutive days. Your task is to find the maximum profit that you can make by completing as many transactions as you like, where a transaction denotes buying one and selling one share of the stock.

Note:

You must sell the stock before you buy it again.
Problem approach

I started with a brute force approach with a n2 approach and optimise to a o(n) approach and he was quite satisfied with the approach

Try solving now

2. Kth smallest node in BST

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

You have been given a Binary Search Tree of integers. You are supposed to return the k-th (1-indexed) smallest element in the tree.


For example:
For the given binary search tree and k = 3

Example

The 3rd smallest node is highlighted in yellow colour.   
Problem approach

Tip 1 : we can build an inorder traversal of BST which is an array sorted in the ascending order. Now the 
answer is the k - 1th element of this array.

Try solving now

3. DBMS Questions

He started asking DBMS questions like joins , Relational models , and many more

Problem approach

Tip 1 : Revise dbms , os concepts throughly 

03
Round
Hard
Video Call
Duration40 minutes
Interview date6 May 2022
Coding problem2

He was a senior software having 7 years of experience and this was a mangerial round

1. Heaven Hell Puzzle

There are two gates, one to hell and the other to heaven. Two gatekeepers, one for each gate. One of them always speaks the truth and the other always lies but you don’t know which one guards which gate. You are allowed only one question and you need to find out the gate to heaven.
What is the question?

2. Edit Distance

Moderate
30m average time
70% success
0/80
Asked in companies
OYOGoldman SachsHCL Technologies

You are given two strings 'S' and 'T' of lengths 'N' and 'M' respectively. Find the "Edit Distance" between the strings.

Edit Distance of two strings is the minimum number of steps required to make one string equal to the other. In order to do so, you can perform the following three operations:

1. Delete a character
2. Replace a character with another one
3. Insert a character
Note:
Strings don't contain spaces in between.
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
58238 views
5 comments
0 upvotes
company logo
SDE - 1
3 rounds | 7 problems
Interviewed by Amazon
35147 views
7 comments
0 upvotes