Walmart Global Tech visited our campus in the month of August, to hire students for the Software Development Engineer role.
Initially, there was a CGPA based shortlisting, after which around 98 students were selected to attend the Online Assessment.
Online Assessment: The platform was HirePro, time duration was 1 hour 15 min 2nd September
• 22 technical MCQs, belonging to OOPS, OS, DBMS, Networks, and SQL (35 mins time)
• 2 coding questions of easy-medium level (40 mins)Coding Questions were:
Code :
// Function to count the number of factors of a given number
int countFactors(int n)
{
if (n <= 1)
return 1; // 1 has exactly one factor, itself
int count = 0;
int sqrtN = static_cast<int>(sqrt(n));
for (int i = 1; i <= sqrtN; ++i)
{
if (n % i == 0)
{
if (i * i == n)
{
count++; // i and n/i are the same, count only once
}
else
{
count += 2; // count both i and n/i
}
}
}
return count;
}
int main()
{
int N;
cin >> N; // Read the number of printers
vector<int> results(N);
for (int i = 0; i < N; ++i)
{
int T;
cin >> T; // Read the number of pages for each printer
results[i] = countFactors(T); // Calculate the number of factors
}
for (int result : results)
{
cout << result << endl; // Output the result for each printer
}
return 0;
}Given a string of character you have to
• Swap whenever there is a vowel followed by a consonant (eg: ab-> ba, abb -> bba)
• Remove special characters such as @, !, #, [, ], etc and spaces (eg: a@b -> ab, ab@b -> bab)
• If there is a consonant followed by a vowel or a consonant followed by a consonant of if there is a vowel followed by a vowel, do nothing.
Code (May not be entirely be correct):
// Function to check if a character is a vowel
bool isVowel(char c)
{
char lowerChar = tolower(c); // Convert to lowercase for uniformity
return (lowerChar == 'a' || lowerChar == 'e' || lowerChar == 'i' || lowerChar == 'o' || lowerChar == 'u');
}
// Function to check if a character is a consonant
bool isConsonant(char c)
{
return isalpha(c) && !isVowel(c);
}
// Function to remove special characters and spaces
string removeSpecialChars(string str)
{
string result;
for (char c : str)
{
if (isalnum(c))
{ // Only include alphanumeric characters
result += c;
}
}
return result;
}
// Function to swap vowels followed by consonants
string processString(string str)
{
str = removeSpecialChars(str); // First remove special characters and spaces
for (int i = 0; i < str.length() - 1; i++)
{
if (isVowel(str[i]) && isConsonant(str[i + 1]))
{
// Swap vowel followed by consonant
swap(str[i], str[i + 1]);
i++; // Skip to the next pair after swapping
}
}
return str;
}Was able to pass all test cases of both the problems, students with 1 total and 1 partial solution also made it to the next round.
30 were selected for the next round.
• This round was a technical interview conducted physically on campus.
• The interviewer first introduced himself, he was an SDE 3(Full Stack) and had 9 years of experience in the IT field and was working with Walmart for 6 years. I was not asked to code any problem in this round, it focused more on core CSE subjects.
• I was asked to introduce myself and then the discussion started on my Resume after I had explained all my projects. We went into depth for all my projects and I was able to answer almost all the question.
• We then went to DBMS I was asked about different types of SQL queries and some examples for each. I was able to answer this very well and explained each in detail.
• Then I was asked about joins and then he gave me two simple SQL tables and asked me to perform all joins and tell him the output on the paper he provided.
• Then I was asked Computer Network related questions. He asked me what happens when you message your friend on WhatsApp. I explained him the entire OSI layer on the paper and what happens in each layer as we move on.
• He asked some more questions on CN and as time was almost over, he could not ask me on OS (but other people were asked on virtualization, segmentation, fragmentation, cache).• After Round 1 I immediately got call for round 2. The interviewer this time was a very senior engineer as Walmart with 18 years of experience.
• She asked me to introduce myself and I did that in great detail and explained all my project in depth. She liked how I explained my projects and did not ask much on it.
• Then she gave me a simple DSA problem(Print matrix in Spiral Order). I knew how to solve it before had but approached it from beginning an explaining her what my thought process was while making changes to the code. I showed her a dry run of my code with explanation and she liked it.
• Then I asked her about her daily responsibility and what should I look into more.
• The interview ended here.• There were a total of 10 people who were allowed for this round and I got my turn after 2 hours from Round 2.
• Again, for this round I was asked only on my project and internship experience.
• He asked me about various situation on my project and I was able to answer all of them.
• Most of the time went into discussing how to approach a problem and finding optimal solution. He was impressed by my approach and solutions and then I asked him a little on Walmart's working and his job details. He answered all my questions and then I came out of the room.Results were to be announced immediately after everyone's interview was done. The last guy gave the interview around 9pm and after 40mins they announced the result and selected 6 people for full time offer.
The HR then called 6 people and gave the good news. I was selected 🙂