Walmart Labs Coding Interview Questions

152 DSA problems tagged as asked in Walmart Labs coding interviews and online assessments. Below are the first 100 of 152: 22 easy, 53 medium and 25 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

Walmart Labs DSA problems, easiest first

  1. Add Binary (Easy)
  2. Best Time to Buy and Sell Stock (Easy)
  3. Count Elements With Maximum Frequency (Easy)
  4. Degree of an Array (Easy)
  5. Diameter of Binary Tree (Easy)
  6. First Unique Character in a String (Easy)
  7. Linked List Cycle (Easy)
  8. Longest Common Prefix (Easy)
  9. Maximum Distance Between Unequal Words in Array I (Easy)
  10. Maximum Length Substring With Two Occurrences (Easy)
  11. Middle of the Linked List (Easy)
  12. Move Zeroes (Easy)
  13. Relative Sort Array (Easy)
  14. Remove Duplicates from Sorted Array (Easy)
  15. Remove Letter To Equalize Frequency (Easy)
  16. Rising Temperature (Easy)
  17. Roman to Integer (Easy)
  18. The Winner University (Easy)
  19. Two Sum (Easy)
  20. Valid Palindrome (Easy)
  21. Valid Parentheses (Easy)
  22. XOR Operation in an Array (Easy)
  23. Asteroid Collision (Medium)
  24. Basic Calculator II (Medium)
  25. Binary Tree Right Side View (Medium)
  26. Boats to Save People (Medium)
  27. Boundary of Binary Tree (Medium)
  28. Capacity To Ship Packages Within D Days (Medium)
  29. Circular Permutation in Binary Representation (Medium)
  30. Coin Change (Medium)
  31. Contiguous Array (Medium)
  32. Course Schedule (Medium)
  33. Course Schedule II (Medium)
  34. Daily Temperatures (Medium)
  35. Decode String (Medium)
  36. Design Hit Counter (Medium)
  37. Diagonal Traverse (Medium)
  38. Find All Anagrams in a String (Medium)
  39. Find All Duplicates in an Array (Medium)
  40. Find K Pairs with Smallest Sums (Medium)
  41. Find Peak Element (Medium)
  42. Find the Winner of the Circular Game (Medium)
  43. Flatten Nested List Iterator (Medium)
  44. Furthest Building You Can Reach (Medium)
  45. House Robber (Medium)
  46. Keys and Rooms (Medium)
  47. Koko Eating Bananas (Medium)
  48. Kth Largest Element in an Array (Medium)
  49. Longest Common Subsequence (Medium)
  50. Longest Increasing Subsequence (Medium)
  51. Longest Substring with At Least K Repeating Characters (Medium)
  52. Meeting Rooms II (Medium)
  53. Min Stack (Medium)
  54. Minimum Remove to Make Valid Parentheses (Medium)
  55. Nearest Exit from Entrance in Maze (Medium)
  56. Next Greater Element II (Medium)
  57. Next Greater Element III (Medium)
  58. Non-decreasing Array (Medium)
  59. Number of Distinct Islands (Medium)
  60. Number of Islands (Medium)
  61. Palindromic Substrings (Medium)
  62. Partition Equal Subset Sum (Medium)
  63. Perfect Squares (Medium)
  64. Permutation in String (Medium)
  65. Product of Array Except Self (Medium)
  66. Remove All Adjacent Duplicates in String II (Medium)
  67. Remove K Digits (Medium)
  68. Rotate Array (Medium)
  69. Rotting Oranges (Medium)
  70. Sort an Array (Medium)
  71. Sort Characters By Frequency (Medium)
  72. Subarray Sum Equals K (Medium)
  73. The Maze (Medium)
  74. Top K Frequent Elements (Medium)
  75. Top K Frequent Words (Medium)
  76. Binary Tree Maximum Path Sum (Hard)
  77. Candy (Hard)
  78. Count Different Palindromic Subsequences (Hard)
  79. Count Good Triplets in an Array (Hard)
  80. Distinct Subsequences (Hard)
  81. Find Median from Data Stream (Hard)
  82. First Missing Positive (Hard)
  83. Largest Rectangle in Histogram (Hard)
  84. LFU Cache (Hard)
  85. Max Stack (Hard)
  86. Maximum Number of Tasks You Can Assign (Hard)
  87. Median of Two Sorted Arrays (Hard)
  88. Meeting Rooms III (Hard)
  89. Merge k Sorted Lists (Hard)
  90. Minimum Number of Operations to Make Arrays Similar (Hard)
  91. Minimum Window Substring (Hard)
  92. N-Queens II (Hard)
  93. Number of Islands II (Hard)
  94. Number of Ways to Separate Numbers (Hard)
  95. Reconstruct Itinerary (Hard)
  96. Reverse Nodes in k-Group (Hard)
  97. Trapping Rain Water (Hard)
  98. Trapping Rain Water II (Hard)
  99. Wildcard Matching (Hard)
  100. Word Ladder (Hard)

Prepare for the rest of the Walmart Labs process

Other companies