Walmart Labs Array Coding Interview Questions
52 array coding problems are tagged as asked at Walmart Labs in interviews and online assessments reported by candidates. By difficulty they split into 9 basic, 35 intermediate and 8 advanced. The topics they most often combine with are Sorting, Hash Table, Sliding Window, Greedy.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Walmart Labs tends to test. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code; every problem opens in an editor that runs your code against test cases.
Coding problems
- Two Sum (Basic)
- Best Time to Buy and Sell Stock (Basic)
- Maximum Subarray (Intermediate)
- Product of Array Except Self (Intermediate)
- Move Zeroes (Basic)
- Rotate Array (Intermediate)
- House Robber (Intermediate)
- Coin Change (Intermediate)
- Longest Increasing Subsequence (Advanced)
- Kth Largest Element (Intermediate)
- Longest Consecutive Sequence (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Trapping Rain Water (Advanced)
- Sort Colors (Basic)
- Largest Rectangle in Histogram (Advanced)
- Daily Temperatures (Intermediate)
- Search in a Rotated Sorted Array (Advanced)
- Minimum in a Rotated Sorted Array (Intermediate)
- Merge Intervals (Intermediate)
- Insert an Interval (Intermediate)
- Candy Distribution (Advanced)
- Subarrays With Product Less Than K (Intermediate)
- Maximum Product Subarray (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Next Permutation (Intermediate)
- Container With Most Water (Intermediate)
- Top K Frequent Values (Intermediate)
- Course Schedule Feasible (Intermediate)
- LRU Cache Operations (Basic)
- LFU Cache Operations (Intermediate)
- Hit Counter (Intermediate)
- Tree From Inorder and Postorder (Intermediate)
- Course Schedule Order (Intermediate)
- Cheapest Flights Within K Stops (Intermediate)
- Nearest Exit From Maze Entrance (Intermediate)
- Min Stack Operations (Basic)
- Asteroid Collision (Intermediate)
- Furthest Building You Can Reach (Intermediate)
- Find K Pairs With Smallest Sums (Intermediate)
- Find All Duplicates in an Array (Intermediate)
- Degree of an Array (Basic)
- Relative Sort Array (Basic)
- 3Sum Triplets (Intermediate)
- Sliding Window Maximum Values (Advanced)
- Median of Two Sorted Arrays (Advanced)
- Search in Rotated Sorted Array II (Intermediate)
- Combination Sum (Intermediate)
- Combination Sum II (Intermediate)
- Meeting Rooms III (Advanced)
- XOR Operation in an Array (Basic)
- Running Median of Stream (Intermediate)
Related
- Walmart Labs coding interview questions
- Array problems
- Walmart Labs basic problems
- Walmart Labs intermediate problems
- Walmart Labs advanced problems
- Company interview roadmaps
- All interview guides
Frequently asked questions
How should I use the Walmart Labs problem list?
Start with the basic problems, then the intermediate and advanced ones, and note which topics repeat. Solve each under a timer, then read the explanation.
Are these the exact Walmart Labs interview questions?
They are problems candidates reported being asked. Companies rotate questions, so use them to learn the patterns, not to predict the exact question.