Walmart SDE2 Interview

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2024-10-23Added By Anonymous
Source: Link
Company: Walmart
Role: SDE2
Stage: unknown
Location: Bangalore
Year: unknown

This interview was for sde2 or whatever equivalent designation they have in walmart. The location was Bangalore.

Questions that were asked duing round 1 were: -

Input: word1 = "horse", word2 = "ros"

Output: 3
Explanation:
horse -> rorse (replace 'h' with 'r')
rorse -> rose (remove 'r')
rose -> ros (remove 'e')

Another question that was asked : -
Write code for binary search. The array could have negative values as well. This question was further modfied and the code changed into -> https://leetcode.com/problems/search-in-rotated-sorted-array/description/

But the interviewer said that the array can be rotated from any side and any number of times.

Apart from this, the interviewer also asked about Multithreading, Singleton pattern and Springboot. The interviewer was in a rush for some reason and he gave barely any time to think or solve about the questions.
Comments