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

SDE - 2

Walmart
upvote
share-icon
3 rounds | 6 Coding problems

Interview preparation journey

expand-icon
Journey
While hunting for my first job, I used to keep track of every other website that posted openings from top companies. In the process, I would apply to about 10-15 job openings a week. One of those was Walmart's when I came across it on Dare to Compete.
Application story
It started as a hiring competition which was posted on Dare to Compete. The process started with an aptitude and a coding round based on which applicants were shortlisted for interviews. There were 2 technical rounds of interview and a final HR interview.
Why selected/rejected for the role?
Yes, I was selected for this role. I was shortlisted for the interviews since I crossed the cut-off from the aptitude and coding rounds. Further, the interviews went well, I was able to answer all questions and provide logical solutions.
Preparation
Duration: 3 Months
Topics: Data Structures, Algorithms, OOPS, DBMS,
Tip
Tip

Tip 1 : Be thorough with what you have on your resume
Tip 2 : Be efficient with problem solving skills

Application process
Where: Other
Eligibility: NA
Resume Tip
Resume tip

Tip 1 : Highlight what you know best
Tip 2 : Be thorough with what you mention

Interview rounds

01
Round
Medium
Video Call
Duration60 Minutes
Interview date2 Jul 2021
Coding problem4

1. Find power of a number

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

Ninja is sitting in an examination hall. He is encountered with a problem statement, "Find ‘X’ to the power ‘N’ (i.e. ‘X’ ^ ‘N’). Where ‘X’ and ‘N’ are two integers."

Ninja was not prepared for this question at all, as this question was unexpected in the exam.

He is asking for your help to solve this problem. Help Ninja to find the answer to the problem.

Note :

For this question, you can assume that 0 raised to the power of 0 is 1.
Try solving now

2. Flipping Coins

Moderate
32m average time
68% success
0/80
Asked in companies
WalmartAmerican ExpressAthenahealth

Gary has N coins placed in a straight line. Some coins have head side up, and others have the tail side up.

Convention:
1 denotes the HEAD side is up. 
0 denotes the TAIL side is up. 

Now, Gary wants to obtain a maximum number of head-side up coins. He can perform at most one(possibly 0) flip in which he can flip the coins of a continuous interval (continuous subarray).

For example: In the given array (0 based indexing), { 1, 0, 0, 1, 0, 0, 1 }, we can obtain maximum head side up coins by flipping the coins in range 1 to 5. The array will thus become {1, 1, 1, 0, 1, 1, 1 }.

Return the maximum number of heads side up Gary can obtain.

Try solving now

3. Kth ancestor of a node in binary tree

Hard
50m average time
35% success
0/120
Asked in companies
HCL TechnologiesWalmartHCL Technologies

You are given an arbitrary binary tree consisting of N nodes numbered from 1 to N, an integer 'K', and a node 'TARGET_NODE_VAL' from the tree. You need to find the Kth ancestor of the node 'TARGET_NODE_VAL'. If there is no such ancestor, then print -1.

The Kth ancestor of a node in a binary tree is the Kth node in the path going up from the given node to the root of the tree. Refer to sample test cases for further explanation.

Note:
1. The given node 'TARGET_NODE_VAL' is always present in the tree.
2. The value of each node in the tree is unique.
3. Notice that the Kth ancestor node if present will always be unique.
Try solving now

4. Valid Parentheses

Easy
10m average time
80% success
0/40
Asked in companies
AmazonIntuitOracle

You're given a string 'S' consisting of "{", "}", "(", ")", "[" and "]" .


Return true if the given string 'S' is balanced, else return false.


For example:
'S' = "{}()".

There is always an opening brace before a closing brace i.e. '{' before '}', '(' before ').
So the 'S' is Balanced.
Try solving now
02
Round
Medium
Video Call
Duration60 Minutes
Interview date2 Jul 2021
Coding problem1

It was a theory round based on concepts from my resume. My resume focused on Data Structures, Algorithms and Java concepts.

1. Merge Sort

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

Given a sequence of numbers ‘ARR’. Your task is to return a sorted sequence of ‘ARR’ in non-descending order with help of the merge sort algorithm.

Example :

Merge Sort Algorithm -

Merge sort is a Divide and Conquer based Algorithm. It divides the input array into two-parts, until the size of the input array is not ‘1’. In the return part, it will merge two sorted arrays a return a whole merged sorted array.

subsequence

The above illustrates shows how merge sort works.
Note :
It is compulsory to use the ‘Merge Sort’ algorithm.
Try solving now
03
Round
Easy
HR Round
Duration30 Minutes
Interview date5 Jul 2021
Coding problem1

Basic HR questions and easy puzzles were asked.

1. Basic HR Questions

  1. Where do you see yourself 3 years from now? or Where do you see yourself in 5 years?
  2. Give an example of a time you had to respond to an unhappy manager/ customer/ colleague/ professor/ friend.
  3. How quickly do you adapt to new technology?

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 - 2
3 rounds | 6 problems
Interviewed by Walmart
3112 views
1 comments
0 upvotes
company logo
SDE - 2
4 rounds | 4 problems
Interviewed by Walmart
2001 views
1 comments
0 upvotes
company logo
SDE - 2
4 rounds | 13 problems
Interviewed by Walmart
2126 views
0 comments
0 upvotes
company logo
SDE - 2
2 rounds | 7 problems
Interviewed by Walmart
1289 views
1 comments
0 upvotes
Companies with similar interview experiences
company logo
SDE - 2
3 rounds | 5 problems
Interviewed by Amazon
6765 views
1 comments
0 upvotes
company logo
SDE - 2
6 rounds | 8 problems
Interviewed by Amazon
5280 views
0 comments
0 upvotes
company logo
SDE - 2
4 rounds | 7 problems
Interviewed by Dunzo
3163 views
0 comments
0 upvotes