Interview Intel · Apple

Apple coding interview
questions, leaked.

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

Founder's read

Apple's interview is a gauntlet of 171 problems, and you're looking at a 62% medium-to-hard split. The company leans hard on arrays (82 problems), strings (47), and hash tables (32). Two Sum, LRU Cache, and Best Time to Buy and Sell Stock will eat up half your prep. If you blank on a sliding-window or two-pointer problem mid-assessment, StealthCoder runs invisibly and surfaces a working solution in seconds. The proctor won't see it. You'll have a concrete answer when you need one most.

Tracked problems
171
Easy
41/ 24%
Medium
106/ 62%
Hard
24/ 14%

Top problems at Apple

leaked_problems.csv50 rows
#ProblemDiffFrequency
01LRU CacheMEDIUM
0.0
02Two SumEASY
100.0
03Best Time to Buy and Sell StockEASY
0.0
04Top K Frequent ElementsMEDIUM
0.0
05Best Time to Buy and Sell Stock IIMEDIUM
0.0
06Longest Substring Without Repeating CharactersMEDIUM
78.3
07Longest Common PrefixEASY
77.6
08Valid ParenthesesEASY
76.9
09Median of Two Sorted ArraysHARD
75.8
10Merge IntervalsMEDIUM
74.2
11Group AnagramsMEDIUM
74.2
12Merge Sorted ArrayEASY
73.8
13Trapping Rain WaterHARD
73.0
14Valid SudokuMEDIUM
71.6
15Reverse IntegerMEDIUM
71.6
16Climbing StairsEASY
70.1
17Longest Palindromic SubstringMEDIUM
68.5
18Palindrome NumberEASY
68.0
19Rotate ImageMEDIUM
67.4
20Spiral MatrixMEDIUM
67.4
213SumMEDIUM
66.8
22Add Two NumbersMEDIUM
66.8
23Roman to IntegerEASY
66.2
24Best Time to Buy and Sell Stock IIIHARD
0.0
25Kth Largest Element in an ArrayMEDIUM
0.0
26Number of IslandsMEDIUM
0.0
27Best Time to Buy and Sell Stock IVHARD
0.0
28Remove Duplicates from Sorted ArrayEASY
65.5
29Search in Rotated Sorted ArrayMEDIUM
64.2
30Maximum SubarrayMEDIUM
63.5
31Sqrt(x)EASY
63.5
32Merge Two Sorted ListsEASY
62.7
33Merge k Sorted ListsHARD
61.2
34Generate ParenthesesMEDIUM
61.2
35Container With Most WaterMEDIUM
60.4
36Find the Index of the First Occurrence in a StringEASY
58.6
37Remove ElementEASY
56.7
38Letter Combinations of a Phone NumberMEDIUM
55.6
39Search Insert PositionEASY
55.6
40Regular Expression MatchingHARD
53.3
41Remove Nth Node From End of ListMEDIUM
53.3
42Find First and Last Position of Element in Sorted ArrayMEDIUM
52.1
43Insert IntervalMEDIUM
52.1
44PermutationsMEDIUM
52.1
45Add BinaryEASY
52.1
46Largest Rectangle in HistogramHARD
52.1
47Maximum Depth of Binary TreeEASY
52.1
48Binary Tree Level Order TraversalMEDIUM
52.1
49Next PermutationMEDIUM
50.8
50Jump GameMEDIUM
47.8

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 Apple OA. The proctor cannot see it. Screen share cannot detect it. Made by a working FAANG engineer who treats the OA the way companies treat hiring: as a game with rules you should know.

Get StealthCoder
Topic distribution
What this means

Arrays dominate Apple's assessment by a factor of 2x over the next-closest topic. That means you're solving interval problems, stock trades, and trapping rain water repeatedly. Strings come second and almost always pair with hash tables or two-pointers (like Longest Substring Without Repeating Characters). Hash tables are the glue: LRU Cache, Top K Frequent Elements, Group Anagrams. Dynamic programming appears in 29 problems but usually layered on top of array or string work, not standalone. Two-pointers and binary search are lower-frequency but deadly if you miss the pattern. Medium difficulty dominates at 62% of the total. Your week should be spent drilling array patterns first, then hash-table design problems, then the string-sliding-window combo. When you hit something unfamiliar on the live OA, StealthCoder is your hedge.

Companies with similar patterns

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

The honest play

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

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 a working FAANG engineer who treats the OA the way companies treat hiring: as a game with rules you should know. Works on HackerRank, CodeSignal, CoderPad, and Karat.

Apple interview FAQ

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

Apple's list has 82 array problems across all difficulties. Aim for 20-25 solid ones covering intervals, two-pointers, stock trades, and trapping water. That covers the core patterns. The rest is repetition and speed. Focus on medium difficulty since that's 62% of what you'll see.

Is hash-table knowledge enough for Apple?+

Hash tables appear in 32 problems, almost always paired with arrays or strings. Two Sum, LRU Cache, Top K Frequent, Group Anagrams. Don't isolate hash-table drill. Instead, learn hash tables in context: solve array-plus-hash problems together, string-plus-hash problems together. That's how they appear live.

Should I prioritize dynamic programming for Apple?+

Dynamic programming shows up in 29 problems, but it's usually a secondary pattern layered on array or string work (Best Time to Buy and Sell Stock, Trapping Rain Water). Don't lead with DP. Solve arrays and strings first. Once those are solid, DP patterns emerge naturally from the problems themselves.

What hard problems are worth drilling before the assessment?+

Apple's 24 hard problems are concentrated in arrays and strings. Median of Two Sorted Arrays and Trapping Rain Water are the most common. If you have 3-4 days left, drill these two. Skip niche hard problems. You're more likely to see medium difficulty repeated than a hard problem you've never seen.

Is two-pointers a weak spot for Apple candidates?+

Two-pointers appear in 30 problems and often trip up candidates who only know the hash-table shortcut. Merge Sorted Array, Trapping Rain Water, Best Time to Buy and Sell Stock II all reward two-pointer thinking. Drill 5-7 two-pointer array problems explicitly. Know when to use it instead of hash table.

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