•CODING INTERVIEW QUESTIONS
Apple Medium Coding Interview Questions (DSA)
36 medium DSA problems sourced from real Apple interviews
Apple Medium Coding Interview Questions
| Problem | Difficulty | Tags |
|---|---|---|
| Medium | ArrayHash TableString | |
| Snapshot Array | Medium | ArrayHash TableBinary Search |
| Longest Common Subsequence | Medium | StringDynamic ProgrammingLongest Common Subsequence |
| Medium | ArrayDynamic Programming | |
| Last Stone Weight II | Medium | ArrayDynamic ProgrammingKnapsack Problem |
| Subarray Product Less Than K | Medium | ArrayBinary SearchSliding Window |
| Medium | Hash TableLinked ListDesign | |
| Medium | ArraySortingQuicksort | |
| Design Hit Counter | Medium | ArrayBinary SearchDesign |
| Medium | Depth-First SearchBreadth-First SearchGraph Theory | |
| Insert Delete GetRandom O(1) | Medium | ArrayHash TableMath |
| Medium | ArrayTwo PointersSorting | |
| Design Memory Allocator | Medium | ArrayHash TableDesign |
| Time Based Key-Value Store | Medium | Hash TableStringBinary Search |
| Medium | ArrayHash TableUnion-Find | |
| Medium | ArrayHash TableGreedy | |
| Maximum Swap | Medium | MathGreedy |
| Is Graph Bipartite? | Medium | Depth-First SearchBreadth-First SearchUnion-Find |
| Medium | Hash TableStringSliding Window | |
| Valid Parenthesis String | Medium | StringDynamic ProgrammingStack |
| Design Task Manager | Medium | Hash TableDesignHeap (Priority Queue) |
| Medium | ArrayDepth-First SearchBreadth-First Search | |
| Valid Sudoku | Medium | ArrayHash TableMatrix |
| Medium | Depth-First SearchBreadth-First SearchGraph Theory | |
| Medium | ArrayHash TableDivide and Conquer | |
| Spiral Matrix | Medium | ArrayMatrixSimulation |
| Find First and Last Position of Element in Sorted Array | Medium | ArrayBinary Search |
| Best Time to Buy and Sell Stock II | Medium | ArrayDynamic ProgrammingGreedy |
| Rotate Image | Medium | ArrayMathMatrix |
| Basic Calculator II | Medium | MathStringStack |
| Medium | Two PointersStringDynamic Programming | |
| Medium | ArrayHash TablePrefix Sum | |
| Permutation in String | Medium | Hash TableTwo PointersString |
| Binary Tree Vertical Order Traversal | Medium | Hash TableTreeDepth-First Search |
| Letter Combinations of a Phone Number | Medium | Hash TableStringBacktracking |
| Edit Distance | Medium | StringDynamic Programming |
Top Data Structures & Patterns — Medium
Array
20 (56%)
Hash Table
16 (44%)
String
10 (28%)
Design
7 (19%)
Dynamic Programming
7 (19%)
Sorting
6 (17%)
Binary Search
5 (14%)
Depth-First Search
5 (14%)
Frequently Asked Questions
What medium Apple coding questions are most common?
InterviewSkool has 36 medium Apple coding questions. Focus on the top 10 to 15 most common problems for the best ROI.
How many medium questions does Apple have?
Apple has 36 medium coding questions out of 50 total. Most interviews focus on Medium problems, so this is the most important difficulty to prepare for.
Are these Apple medium questions free?
Yes. All 36 medium Apple coding questions are free to browse. No sign-up required. Filter by topic and click any problem to open it on LeetCode.
Practice with a Mock Interview
Simulate real Apple interview pressure with our AI interviewer.
Start Mock Interview →