Interview Intel · Yahoo

Yahoo coding interview
questions, leaked.

106 problems reported across recent Yahoo interviews. Top patterns: array, string, dynamic programming. The list below is what most candidates actually saw, plus the honest play if you can't grind all of it.

Founder's read

Yahoo's interview loop hits you with 106 problems across their online assessment, and 51 of them are array problems. You're walking in knowing two-pointers, hash tables, and dynamic programming will carry you through most of the medium-difficulty grind. But the gap between drilling Two Sum at home and blanking on Median of Two Sorted Arrays under a proctor's eye is real. StealthCoder sits invisibly during your assessment, reading the problem and surfacing a working solution in seconds if you hit a wall on the hard stuff or forget a pattern mid-solve.

Tracked problems
106
Easy
27/ 25%
Medium
67/ 63%
Hard
12/ 11%

Top problems at Yahoo

leaked_problems.csv50 rows
#ProblemDiffFrequency
01Two SumEASY
100.0
02Longest Substring Without Repeating CharactersMEDIUM
75.8
03Container With Most WaterMEDIUM
73.8
04Roman to IntegerEASY
72.7
05Maximum Depth of Binary TreeEASY
71.5
06Remove Duplicates from Sorted ArrayEASY
70.3
073SumMEDIUM
70.3
08Median of Two Sorted ArraysHARD
70.3
09Add Two NumbersMEDIUM
69.0
10Merge Sorted ArrayEASY
69.0
11Longest Palindromic SubstringMEDIUM
67.7
12LRU CacheMEDIUM
67.7
13Best Time to Buy and Sell StockEASY
64.6
14Rotate ImageMEDIUM
64.6
15Word BreakMEDIUM
64.6
16Merge Two Sorted ListsEASY
62.9
17Climbing StairsEASY
62.9
18Palindrome NumberEASY
62.9
19Valid ParenthesesEASY
62.9
20Longest Common PrefixEASY
62.9
21Linked List CycleEASY
62.9
22Generate ParenthesesMEDIUM
61.1
23Merge IntervalsMEDIUM
61.1
24Jump GameMEDIUM
59.1
25Spiral MatrixMEDIUM
56.9
26Group AnagramsMEDIUM
54.4
27Remove ElementEASY
54.4
28Trapping Rain WaterHARD
54.4
29Search Insert PositionEASY
54.4
30Combination SumMEDIUM
51.6
31Find the Index of the First Occurrence in a StringEASY
51.6
32SubsetsMEDIUM
51.6
33Plus OneEASY
51.6
34Reverse IntegerMEDIUM
51.6
35Count and SayMEDIUM
51.6
36Find First and Last Position of Element in Sorted ArrayMEDIUM
51.6
37Set Matrix ZeroesMEDIUM
48.3
38Sqrt(x)EASY
48.3
39Pascal's TriangleEASY
48.3
40Divide Two IntegersMEDIUM
48.3
41Maximum SubarrayMEDIUM
48.3
42Letter Combinations of a Phone NumberMEDIUM
48.3
43Largest Rectangle in HistogramHARD
44.5
44Pow(x, n)MEDIUM
44.5
45Valid PalindromeEASY
44.5
46Next PermutationMEDIUM
44.5
47Binary Tree Level Order TraversalMEDIUM
44.5
48Zigzag ConversionMEDIUM
44.5
49Regular Expression MatchingHARD
44.5
50Recover Binary Search TreeMEDIUM
39.9

Frequencies derived from public community-tagged interview reports. Click a row to view on LeetCode.

The hedge

You have a week, maybe less. You can't out-grind the list above. StealthCoder runs invisibly during the actual Yahoo OA. The proctor cannot see it. Screen share cannot detect it. Made by an Amazon engineer who watched the leaked-problem repo become an industry secret. He decided you should have it too.

Get StealthCoder
Topic distribution
What this means

The distribution screams arrays first, then strings and DP as your secondary anchors. Two-pointers appears in 19 problems and dominates Yahoo's medium tier (Container With Most Water, 3Sum, Longest Palindromic Substring). Hash tables show up in 19 problems but often pair with arrays or strings, so don't isolate them. The hard problems (12 total) skew toward binary search and divide-and-conquer (Median of Two Sorted Arrays is the canonical brick wall here). Linked lists and tree problems exist but lower volume. Drill arrays and two-pointers until they're automatic, then lock in hash-table string combos and DP backtracking. When you hit the assessment itself, StealthCoder is your insurance policy if you get stuck on Longest Palindromic Substring or any hard outlier you didn't see in your prep sprint.

Companies with similar patterns

If you prepped for Yahoo, these companies recycle ~60% of the same topics.

The honest play

You've seen the list. Now make sure you pass Yahoo.

Memorizing every problem above in a week is a fantasy. StealthCoder is the hedge: an AI overlay that's invisible during screen share. It reads the problem on screen and surfaces a working solution in under 2 seconds. Made by an Amazon engineer who watched the leaked-problem repo become an industry secret. He decided you should have it too. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Yahoo interview FAQ

How many array problems should I solve before Yahoo's assessment?+

Yahoo loaded 51 of 106 problems with arrays, so they're non-negotiable. Solve at least 15-20 across easy and medium (Two Sum, Container With Most Water, Remove Duplicates, Merge Sorted Array) until the patterns stick. Skip the deep DP variants initially; two-pointers and basic iteration cover most of them.

Is dynamic programming required for Yahoo?+

22 of 106 problems touch DP, but most are medium difficulty and often pair with arrays or strings. You don't need hard DP chops. Solve Best Time to Buy and Sell Stock, Word Break, and one or two palindrome variants. That covers 80 percent of what they ask.

What's the hardest gap between what I drill and what they ask?+

Median of Two Sorted Arrays is their only hard problem in the top list, and it requires binary search on two arrays simultaneously. Most candidates skip it in prep. Spend one focused session on it; if it clicks, great. If not on test day, you'll have StealthCoder as backup.

Should I study linked lists and trees for Yahoo?+

Linked lists appear in 13 problems, trees in 11. Lower volume than arrays and strings, but don't ignore them. LRU Cache (hash table plus linked list) is a design problem they favor. Solve Maximum Depth of Binary Tree and one linked-list reverse variant, then move on.

How much of Yahoo's assessment is easy versus medium?+

27 easy, 67 medium, 12 hard out of 106 total. That's 25 percent easy, 63 percent medium. You'll see a wall of medium problems, so don't waste time re-drilling easy problems the week before. Lock medium patterns (two-pointers, hash-table strings, light DP) and go in confident.

Problem frequencies sourced from public community-maintained interview-report repos. Problems, ratings, and trademarks are property of LeetCode and Yahoo. StealthCoder is not affiliated with Yahoo.