Walmart SDE2 Interview

walmart logo
walmart
SDE IIbangalore
October 23, 202422 reads

Summary

I interviewed for an SDE2 position at Walmart in Bangalore, facing coding challenges including Edit Distance and a modified Binary Search on a rotated array. The technical round also covered Multithreading, Singleton pattern, and Springboot, though the interviewer seemed rushed.

Full Experience

I had my interview for an SDE2 position, or an equivalent designation, at Walmart in Bangalore. During the first round, I was presented with several questions. The interviewer appeared to be in a rush, which unfortunately meant I had barely any time to thoroughly think about or solve the questions. Despite the time constraint, I tried my best to tackle the problems posed.

Interview Questions (5)

Q1
Edit Distance
Data Structures & AlgorithmsMedium

I was given two words, word1 and word2, and asked to find the minimum number of operations required to convert word1 to word2. The allowed operations were inserting a character, deleting a character, or replacing a character.

Example:

Input: word1 = "horse", word2 = "ros"
Output: 3
Explanation:
horse -> rorse (replace 'h' with 'r')
rorse -> rose (remove 'r')
rose -> ros (remove 'e')
Q2
Binary Search in Rotated Sorted Array
Data Structures & AlgorithmsMedium

Initially, I was asked to write code for a standard binary search, ensuring it could handle arrays containing negative values. This question was then modified to the problem of searching in a rotated sorted array. The interviewer specified that the array could be rotated from any side and any number of times, adding a layer of complexity to the problem.

Q3
Multithreading Concepts
Other

Apart from the coding problems, the interviewer asked me questions related to Multithreading concepts.

Q4
Singleton Pattern
Other

I was also questioned on the Singleton design pattern.

Q5
Springboot
Other

The discussion also covered topics related to Springboot.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!