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

Software Developer

Walmart
upvote
share-icon
3 rounds | 3 Coding problems

Interview preparation journey

expand-icon
Journey
I have done by BTech in Electronics and Communication. Being from a non CSE background I had to work a little hard on the core subjects. I started DSA preparation in 2nd year of my college. The theory subjects like OS, DBMS, OOPS were started much late around 4 weeks before the recruitment season was about to begin.
Application story
I have been very active on all sites. There was a form being circulated that consisted of adding personal information and a lot of personal projects. I just filled it and got the Hackerrank test link a month later.
Why selected/rejected for the role?
I was selected for the role. It made me extremely happy and excited and felt like all my hard work has paid off.
Preparation
Duration: 6 months
Topics: Data Structers and Algorthims, object oriented programming, dbms, os, web development
Tip
Tip

Tip 1: Be consistent. 

Tip 2: Keep making notes during preparation; they come in handy later.

Application process
Where: Linkedin
Eligibility: Above 7 cgpa
Resume Tip
Resume tip

Tip 1 : Keep crisp
Tip 2 : Highlight projects as much as you can

Interview rounds

01
Round
Easy
Assignment
Duration120 minutes
Interview date4 Apr 2022
Coding problem0

Question: Twisted Knapsack.

02
Round
Easy
Face to Face
Duration60 minutes
Interview date7 Apr 2022
Coding problem2

1. 0 1 Knapsack

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

A thief is robbing a store and can carry a maximal weight of W into his knapsack. There are N items and the ith item weighs wi and is of value vi. Considering the constraints of the maximum weight that a knapsack can carry, you have to find and return the maximum value that a thief can generate by stealing items.

Problem approach

Solved using dynamic programming

1) create a dp array, and initialize it as 0.

2) First, we need to initialize the base conditions of the recursive solution.

3) At ind==0, we are considering the first element, if the capacity of the knapsack is greater than the weight of the first item, we return val[0] as answer. We will achieve this using a for loop. 
4) Next, we are done for the first row, so our ‘ind’ variable will move from 1 to n-1, whereas our ‘cap’ variable will move from 0 to ‘W’. We will set the nested loops to traverse the dp array.

5) Inside the nested loops we will apply the recursive logic to find the answer of the cell.
6) When the nested loop execution has ended, we will return dp[n-1][W] as our answer.

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.
Problem approach

Approach using two pointers(l and r) along with an iterator(i). The entire array will be divided into three ranges:

1) Index 0 to l-1 (range containing 0)
2) Index l to r (range containing unknown elements)
3) Index r+1 to n (range containing 2)
4) Initialise l=0 and r=n-1.
5) Inside a for loop, make sure i<=r and do the following steps:
6) If the i-th element is 0, swap it with arr[l] and increment l and i.
7) If the i-th element is 2, swap it with arr[r] and decrement r (not i). The loop will automatically check for the next updated value of arr[i].
8) If the i-th element is arr[i], simply increment i and continue.

Try solving now
03
Round
Easy
HR Round
Duration30 minutes
Interview date14 Apr 2023
Coding problem1

1. Basic HR Questions

Introduce yourself.

Why do you want to join us?

Who is your role model?

Problem approach

Tip 1: be as real as possible

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-3
1 rounds | 1 problems
Interviewed by Walmart
0 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 - 2
2 rounds | 7 problems
Interviewed by Walmart
1289 views
1 comments
0 upvotes
company logo
Software Engineer
4 rounds | 7 problems
Interviewed by Walmart
1236 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Developer
5 rounds | 14 problems
Interviewed by Microsoft
4029 views
1 comments
0 upvotes
company logo
Software Developer
6 rounds | 12 problems
Interviewed by SAP Labs
2912 views
0 comments
0 upvotes
company logo
Software Developer
3 rounds | 3 problems
Interviewed by Amazon
1270 views
0 comments
0 upvotes