Walmart Labs Coding Interview Questions
91 coding problems are tagged as asked at Walmart Labs in interviews and online assessments reported by candidates. By difficulty they split into 16 basic, 59 intermediate and 16 advanced. The topics they most often combine with are Array, String, Hash Table, Sorting.
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)
- Valid Parentheses (Basic)
- Longest Substring Without Repeats (Intermediate)
- Product of Array Except Self (Intermediate)
- Move Zeroes (Basic)
- Rotate Array (Intermediate)
- House Robber (Intermediate)
- Coin Change (Intermediate)
- Longest Increasing Subsequence (Advanced)
- First Unique Character (Basic)
- Valid Palindrome (Basic)
- Kth Largest Element (Intermediate)
- Longest Consecutive Sequence (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Trapping Rain Water (Advanced)
- Decode Ways (Intermediate)
- Longest Palindromic Substring (Intermediate)
- Sort Colors (Basic)
- Largest Rectangle in Histogram (Advanced)
- Daily Temperatures (Intermediate)
- Integer to Roman (Intermediate)
- Roman to Integer (Intermediate)
- Add Binary (Basic)
- Longest Common Subsequence (Advanced)
- Edit Distance (Advanced)
- Reverse Integer (Intermediate)
- Search in a Rotated Sorted Array (Advanced)
- Minimum in a Rotated Sorted Array (Intermediate)
- Merge Intervals (Intermediate)
- Insert an Interval (Intermediate)
- Sort Characters by Frequency (Intermediate)
- Candy Distribution (Advanced)
- Permutation Inside a String (Intermediate)
- Subarrays With Product Less Than K (Intermediate)
- Zigzag Conversion (Intermediate)
- Remove K Digits to Get the Smallest Number (Intermediate)
- Count Palindromic Substrings (Intermediate)
- Tree Diameter (Advanced)
- Maximum Product Subarray (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Next Permutation (Intermediate)
- Container With Most Water (Intermediate)
- Top K Frequent Values (Intermediate)
- Minimum Window Substring (Advanced)
- Course Schedule Feasible (Intermediate)
- Tree Vertical Traversal (Intermediate)
- LRU Cache Operations (Basic)
- LFU Cache Operations (Intermediate)
- Count Distinct Islands Shapes (Basic)
- Reconstruct Itinerary (Advanced)
- Minimum Number of Perfect Squares (Intermediate)
- Hit Counter (Intermediate)
- Remove Nth Node From End (Intermediate)
- Binary Tree Right Side View (Intermediate)
- Zigzag Level Order Traversal (Intermediate)
- Middle of the Linked List (Basic)
- Tree From Inorder and Postorder (Intermediate)
- Number of Islands (Basic)
- Rotting Oranges (Intermediate)
- Course Schedule Order (Intermediate)
- Cheapest Flights Within K Stops (Intermediate)
- Nearest Exit From Maze Entrance (Intermediate)
- Word Search (Intermediate)
- Min Stack Operations (Basic)
- Basic Calculator (Advanced)
- Basic Calculator II (Intermediate)
- Asteroid Collision (Intermediate)
- Furthest Building You Can Reach (Intermediate)
- Find K Pairs With Smallest Sums (Intermediate)
- Find All Duplicates in an Array (Intermediate)
- Valid Sudoku (Intermediate)
- Diagonal Traverse (Intermediate)
- Degree of an Array (Basic)
- Relative Sort Array (Basic)
- 3Sum Triplets (Intermediate)
- Sliding Window Maximum Values (Advanced)
- Longest Substring With At Least K Repeats (Intermediate)
Related
- Walmart Labs basic problems
- Walmart Labs intermediate problems
- Walmart Labs advanced problems
- Walmart Labs Array problems
- Walmart Labs String problems
- Walmart Labs Hash Table problems
- Walmart Labs Sorting problems
- Walmart Labs Matrix problems
- Walmart Labs Sliding Window problems
- Walmart Labs Math 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.