Thursday, July 4, 2024
HomeData ModellingDynamic ProgrammingWalmart Labs Interview Experience ( On Campus FT + 6 month Internship...

Walmart Labs Interview Experience ( On Campus FT + 6 month Internship )

Round 1 (Online Coding and MCQs):-

The test was held on HackerEarth and was of 90 minutes. It consisted of 3 Coding Problem (100 Marks) . The Coding Problem was of medium difficulty.

Question 1. https://practice.neveropen.co.za/problems/optimal-walk/ (35 Marks )
Question 2. Given X, Y, K, P, Q, where X is the number of unique alphabets, Y is the number of unique digits we have to form a string of length K with the following constraints :
1. string must start with an alphabet
2. must contain P number of alphabets
3. must contain Q number of digits
P+Q = K ;
1<=X<=26
1<=Y<=10
1<=K<=35
1<=P+Q<=K ;

Ex. K=25, Y=5, K=2, P=1, Q=1;
ans = 125

Question 3 : given string s1 and s2, we have to transform s1 to palindrome such that s1 contain s2 as substring
in minimum opeartion, where operation is we can convert any character to an other character . print -1 if not possible .

Ex. : s1 = arbcd, s2 = ar
output : 2
s1 = aaaaa, s2 = bbb
output : 3

Feeling lost in the world of random DSA topics, wasting time without progress? It’s time for a change! Join our DSA course, where we’ll guide you on an exciting journey to master DSA efficiently and on schedule.
Ready to dive in? Explore our Free Demo Content and join our DSA course, trusted by over 100,000 neveropen!

Dominic Rubhabha Wardslaus
Dominic Rubhabha Wardslaushttps://neveropen.dev
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments