Yahoo Coding Interview Questions: 22 Tagged Problems
22 coding problems tagged Yahoo — 6 easy · 13 medium · 3 hard — with solutions in 13 languages. Plus a 2-week study plan by topic.
- Problems: 22
- By difficulty: 6 easy · 13 medium · 3 hard
- Languages: JavaScript, TypeScript, Python, Java, C++, C, C#, Go, Kotlin, Swift, Rust, PHP and Ruby
- Cost: Free on every plan; sign in to run and submit
22 problems the CodeKairo catalogue tags as commonly asked in Yahoo's coding rounds — 6 easy, 13 medium and 3 hard — each judged by hidden tests in 13 languages. The most common topics among them are Arrays (12), Strings (9) and Hash Table (6). Tagged for Yahoo and no other company: Find Peak Element. The tag is the catalogue's own annotation of where a problem tends to come up — not a list published by Yahoo, which CodeKairo is not affiliated with.
Yahoo study plan by topic
All 22 problems tagged Yahoo over 2 weeks, about 12 h 5 min of solving, grouped by technique in the order they build on each other — Strings, Hash Table, Math and Prefix Sum and 12 more.
Week 1: Strings, Hash Table, Math +8
12 problems on Strings, Hash Table, Math, Prefix Sum, Bucket Sort, Binary Search, Stack, Matrix, Simulation, Enumeration and Intervals, easiest first within each topic.
- Longest Common Prefix Easy
- Two Sum Easy
- Roman to Integer Easy
- Subarray Sum Equals K Medium
- Top K Frequent Elements Medium
- Search in Rotated Sorted Array Medium
- Find Peak Element Medium
- Valid Parentheses Easy
- Matrix Cells in Distance Order Easy
- Spiral Matrix Medium
- Largest Palindrome Product Hard
- Meeting Rooms II Medium
Week 2: Recursion, Bit Manipulation, Trie +2
10 problems on Recursion, Bit Manipulation, Trie, Backtracking and Breadth-First Search, easiest first within each topic.
- Decode String Medium
- Integer to English Words Hard
- Binary Number with Alternating Bits Easy
- Word Break Medium
- Word Search II Hard
- Combination Sum Medium
- Word Search Medium
- Restore IP Addresses Medium
- Non-decreasing Subsequences Medium
- Shortest Path in Binary Matrix Medium
All problems tagged Yahoo
Easy (6)
- Binary Number with Alternating Bits Bit Manipulation
- Matrix Cells in Distance Order Array, Math, Matrix
- Roman to Integer Hash Table, Math, String
- Longest Common Prefix String
- Valid Parentheses String, Stack
- Two Sum Array, Hash Table
Medium (13)
- Non-decreasing Subsequences Array, Hash Table, Backtracking
- Restore IP Addresses String, Backtracking
- Word Search Array, String, Backtracking
- Shortest Path in Binary Matrix Array, Breadth-First Search, Matrix
- Combination Sum Array, Backtracking
- Meeting Rooms II Array, Sorting, Heap
- Spiral Matrix Array, Matrix, Simulation
- Top K Frequent Elements Array, Heap, Hash Table
- Word Break String, Dynamic Programming, Hash Table
- Decode String String, Stack, Recursion
- Find Peak Element Array, Binary Search
- Search in Rotated Sorted Array Array, Binary Search
- Subarray Sum Equals K Array, Hash Table, Prefix Sum
Hard (3)
- Word Search II String, Backtracking, Trie
- Largest Palindrome Product Math, Enumeration
- Integer to English Words String, Math, Recursion
Topics Yahoo asks most
- Arrays 12 problems
- Strings 9 problems
- Hash Table 6 problems
- Matrix 5 problems
- Backtracking 5 problems
- Math 4 problems
- Sorting 2 problems
- Binary Search 2 problems
- Stack 2 problems
- Recursion 2 problems
- Heap 2 problems
- Bit Manipulation 2 problems