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

SDE - 1

Walmart
upvote
share-icon
5 rounds | 8 Coding problems

Interview preparation journey

expand-icon
Preparation
Duration: 3 months
Topics: OS, DBMS, Computer Networks, JAVA, OOPS
Tip
Tip

Tip 1 : Resume sholuld be concise
Tip 2 : Be well prepared with basics

Application process
Where: Other
Eligibility: No backlogs
Resume Tip
Resume tip

Tip 1 : Don't lie
Tip 2 : Resume should be 1 page maximum

Interview rounds

01
Round
Easy
Online Coding Interview
Duration25 Minutes
Interview date17 Jun 2021
Coding problem1

To test basic computer fundamentals. The quiz had 30 questions to be attempted in 25 minutes consisting of questions related to Data structures and algorithms, OOPS, OS, DBMS, and some questions to find the output of the Java Program.

1. DS Question

Number of primitive data types in Java are?

Problem approach

Answer - 8

02
Round
Easy
Online Coding Test
Duration90 Minutes
Interview date18 Jun 2021
Coding problem2

2 questions of coding of medium level

1. Count with K different characters

Moderate
15m average time
85% success
0/80
Asked in companies
AmazonWalmartCIS - Cyber Infrastructure

You are given a string 'str' of lowercase alphabets and an integer 'k' .


Your task is to return the count all the possible substrings that have exactly 'k' distinct characters.


For example:

'str' = abcad and 'k' = 2. 

We can see that the substrings {ab, bc, ca, ad} are the only substrings with 2 distinct characters. 

Therefore, the answer will be 4.    
Try solving now

2. Number of Flips

Easy
0/40
Asked in companies
Info Edge India (Naukri.com)WalmartD.E.Shaw

Ninja is learning the binary representation of the numbers. He wanted to practice the topic, so he picked a question. The problem statement says, two numbers, ‘A’ and ‘B’ are given. Find the number of bits of ‘B’ that should be flipped to convert it into ‘A’.Can you help Ninja to solve this problem?

You are given two integers, ‘A’ and ‘B’.Find the number of bits of ‘B’ that should be flipped to convert it into ‘A’.

For Example
If ‘A’ is 13(1101) and ‘B’ is 7(0111), The number of bits that should be flipped is 2(0111). 
Try solving now
03
Round
Easy
Video Call
Duration40 Minutes
Interview date21 Jun 2021
Coding problem2

Questions were based on resume and DSA

1. Repeat Triangle

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

Ninja wants to build a triangle pattern for English alphabets for a given integer input.

Example, for ‘N’ = 4

Pattern:

ABCDDCBA
 ABCCBA
  ABBA
   AA
Try solving now

2. Generate All Strings

Moderate
25m average time
52% success
0/80
Asked in company
Walmart

You are given a string ‘S’ of length ‘N’ which consists of digits from 0 to 9 only. If the mapping of characters from a to z is like a = 1, b = 2, c = 3…. Z = 26. You need to convert the given string of digits into the string of characters using the mapping.

Example:
‘S’ = “112”. 

Output: [aab, al, kb]

The possible ways to convert the given strings is: 
aab => a = 1, a = 1, b = 2,
al => a = 1, l = 12
kb => k = 11, b = 2
Hence, the final array is: [aab, al, kb].
Try solving now
04
Round
Easy
Video Call
Duration30 Minutes
Interview date22 Jun 2021
Coding problem2

Based on JAVA , OOPS and DSA

1. Shortest Common Supersequence

Hard
25m average time
0/120
Asked in companies
Dream11SamsungHCL Technologies

Given two strings, ‘A’ and ‘B’. Return the shortest supersequence string ‘S’, containing both ‘A’ and ‘B’ as its subsequences. If there are multiple answers, return any of them.

Note: A string 's' is a subsequence of string 't' if deleting some number of characters from 't' (possibly 0) results in the string 's'.

For example:
Suppose ‘A’ = “brute”, and ‘B’ = “groot”

The shortest supersequence will be “bgruoote”. As shown below, it contains both ‘A’ and ‘B’ as subsequences.

A   A A     A A
b g r u o o t e
  B B   B B B  

It can be proved that the length of supersequence for this input cannot be less than 8. So the output will be bgruoote.
Try solving now

2. Lexicographic Rank of a String

Moderate
0/80
Asked in companies
Urban Company (UrbanClap)WalmartNutanix

Ninja got holiday homework from his English teacher. His teacher gave him a string and told him to find the rank of the string if the string is sorted in lexicographical order.

Ninja is very new into programming, he didn’t know how to solve this question but he has to solve this question as this question has a very heavy weightage among all the questions given in holiday homework.

Ninja knows that you are a very good programmer who has practiced a lot of questions. Help Ninja!.

Note:

There will only be distinct characters in the given string.
Try solving now
05
Round
Easy
HR Round
Duration30 Minutes
Interview date23 Jun 2021
Coding problem1

1. Basic HR Questions

Tell me about yourself.
Have you got offer from another organization?
Why do you want to join Walmart?

Problem approach

Tip 1 : Be confident
Tip 2 : Don't Lie

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
4668 views
0 comments
0 upvotes
company logo
SDE - 1
4 rounds | 8 problems
Interviewed by Walmart
1045 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
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