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

Software Engineer

Walmart
upvote
share-icon
2 rounds | 4 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 2 months
Topics: Arrays, Linked List, System Design, Graphs, OOPS
Tip
Tip

Tip 1 : Practice coding
Tip 2 : Try to write attractive resume
Tip 3 : Don't follow others blindly

Application process
Where: Company Website
Eligibility: NA
Resume Tip
Resume tip

Tip 1 : Don't lie on resume
Tip 2 : Write in one page with important details

Interview rounds

01
Round
Easy
Video Call
Duration60 Minutes
Interview date16 Jul 2021
Coding problem2

First question was to find the first non-repeating character. Then, the next question about finding the minimum coins.
Then, the next round was again DS/Algo

1. First non repeating character

Easy
15m average time
80% success
0/40
Asked in companies
QuikrHCL TechnologiesMakeMyTrip

Ninja is now bored with numbers and is now playing with characters but hates when he gets repeated characters. Ninja is provided a string, and he wants to return the first unique character in the string.The string will contain characters only from the English alphabet set, i.e., ('A' - 'Z') and ('a' - 'z'). If there is no non-repeating character, print the first character of the string. If there is no non-repeating character, return the first character of the string.

Try solving now

2. Minimum Coins

Moderate
30m average time
70% success
0/80
Asked in companies
DelhiveryWalmartOla

Bob went to his favourite bakery to buy some pastries. After picking up his favourite pastries his total bill was P cents. Bob lives in Berland where all the money is in the form of coins with denominations {1, 2, 5, 10, 20, 50, 100, 500, 1000}.

Bob is not very good at maths and thinks fewer coins mean less money and he will be happy if he gives minimum number of coins to the shopkeeper. Help Bob to find the minimum number of coins that sums to P cents (assume that Bob has an infinite number of coins of all denominations).

Try solving now
02
Round
Easy
Video Call
Duration60 Minutes
Interview date16 Jul 2021
Coding problem2

We had lot of discussion around the solution for the first problem and it took more than an hour.
And, that's the end of this round as well.

1. Distributing Coins

Moderate
45m average time
55% success
0/80
Asked in companies
AppleUberWalmart

You are given the ‘ROOT’ of a binary tree with ‘N’ nodes where each node in the tree has some coins, and there are ‘N’ coins total. In one move, we may choose two adjacent nodes and move one coin from one node to another.

Your task is to return the number of moves required to make every node have exactly one coin.

Note:

A move may be from parent to child or from child to parent.

For example,

Given ‘ROOT’ = [2,-1,0,-1,-1]

The tree would look like this : 

The answer would be 1, because the root node will transfer 1 coin to its right child. Thus both nodes have the same number of coins now.
Try solving now

2. Rooms

Moderate
30m average time
70% success
0/80
Asked in companies
AdobeDisney + HotstarMicrosoft

You are given some information about the rooms of a military camp. The rooms are numbered from 0 to 'N-1'. Each room contains keys to some other rooms. You can visit a room only if you have a key to that room. Your task is to determine whether each room can be visited or not.

Note:

1. Room 0 is the only room that is initially unlocked and doesn’t require any key to enter.

2. Any other room can be visited only if you have the key to that room.

3. More than one room can have keys to the same room.

4. You are allowed to visit rooms in any order.

5. You can visit any room multiple times.
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
Software Engineer
3 rounds | 4 problems
Interviewed by Walmart
3420 views
2 comments
0 upvotes
company logo
Software Engineer
4 rounds | 7 problems
Interviewed by Walmart
1237 views
0 comments
0 upvotes
company logo
Software Engineer
3 rounds | 4 problems
Interviewed by Walmart
1327 views
0 comments
0 upvotes
company logo
Software Engineer
2 rounds | 2 problems
Interviewed by Walmart
729 views
0 comments
0 upvotes
Companies with similar interview experiences
company logo
Software Engineer
3 rounds | 7 problems
Interviewed by Optum
7977 views
1 comments
0 upvotes
company logo
Software Engineer
5 rounds | 5 problems
Interviewed by Microsoft
10148 views
1 comments
0 upvotes
company logo
Software Engineer
2 rounds | 4 problems
Interviewed by Amazon
4448 views
1 comments
0 upvotes