Yahoo Coding Interview Questions

64 DSA problems tagged as asked in Yahoo coding interviews and online assessments. Below are all 64: 26 easy, 32 medium and 6 hard. Start with the easy ones, then move to medium. Practise free on InternHack and track your progress.

Yahoo DSA problems, easiest first

  1. Best Time to Buy and Sell Stock (Easy)
  2. Binary Number with Alternating Bits (Easy)
  3. Concatenation of Array (Easy)
  4. Contains Duplicate (Easy)
  5. Happy Number (Easy)
  6. Intersection of Two Arrays (Easy)
  7. Isomorphic Strings (Easy)
  8. Linked List Cycle (Easy)
  9. Longest Common Prefix (Easy)
  10. Make The String Great (Easy)
  11. Matrix Cells in Distance Order (Easy)
  12. Maximum Depth of Binary Tree (Easy)
  13. Merge Sorted Array (Easy)
  14. Move Zeroes (Easy)
  15. Number of Students Unable to Eat Lunch (Easy)
  16. Palindrome Number (Easy)
  17. Recyclable and Low Fat Products (Easy)
  18. Remove Linked List Elements (Easy)
  19. Reverse Linked List (Easy)
  20. Roman to Integer (Easy)
  21. Search Insert Position (Easy)
  22. Sqrt(x) (Easy)
  23. Squares of a Sorted Array (Easy)
  24. Two Sum (Easy)
  25. Valid Anagram (Easy)
  26. Valid Parentheses (Easy)
  27. 3Sum (Medium)
  28. Add Two Numbers (Medium)
  29. Combination Sum (Medium)
  30. Container With Most Water (Medium)
  31. Decode String (Medium)
  32. Edit Distance (Medium)
  33. Evaluate Division (Medium)
  34. Find All Duplicates in an Array (Medium)
  35. Find Peak Element (Medium)
  36. Flatten Nested List Iterator (Medium)
  37. Group Anagrams (Medium)
  38. Longest Repeating Character Replacement (Medium)
  39. LRU Cache (Medium)
  40. Maximum Distance in Arrays (Medium)
  41. Maximum Number of Occurrences of a Substring (Medium)
  42. Minimum Number of Arrows to Burst Balloons (Medium)
  43. Network Delay Time (Medium)
  44. Non-decreasing Subsequences (Medium)
  45. Number of Islands (Medium)
  46. Peeking Iterator (Medium)
  47. Product of Array Except Self (Medium)
  48. Restore IP Addresses (Medium)
  49. Rotate Image (Medium)
  50. Search in Rotated Sorted Array (Medium)
  51. Set Matrix Zeroes (Medium)
  52. Shortest Path in Binary Matrix (Medium)
  53. Spiral Matrix (Medium)
  54. String Compression (Medium)
  55. Subarray Sum Equals K (Medium)
  56. Top K Frequent Elements (Medium)
  57. Validate Binary Search Tree (Medium)
  58. Word Break (Medium)
  59. Largest Palindrome Product (Hard)
  60. Maximal Rectangle (Hard)
  61. Median of Two Sorted Arrays (Hard)
  62. Serialize and Deserialize Binary Tree (Hard)
  63. Sliding Window Maximum (Hard)
  64. Subarrays with K Different Integers (Hard)

Prepare for the rest of the Yahoo process

Other companies