Apple Intermediate Coding Interview Questions
102 intermediate coding problems are tagged as asked at Apple in interviews and online assessments reported by candidates. By difficulty they split into 0 basic, 102 intermediate and 0 advanced. The topics they most often combine with are Array, String, Math, Matrix.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Apple tends to test. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code; every problem opens in an editor that runs your code against test cases.
Coding problems
- Maximum Subarray (Intermediate)
- Longest Substring Without Repeats (Intermediate)
- Product of Array Except Self (Intermediate)
- Rotate Array (Intermediate)
- House Robber (Intermediate)
- Coin Change (Intermediate)
- Kth Largest Element (Intermediate)
- Minimum Size Subarray Sum (Intermediate)
- Longest Consecutive Sequence (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Decode Ways (Intermediate)
- Longest Palindromic Substring (Intermediate)
- Happy Number (Intermediate)
- Roman to Integer (Intermediate)
- Count Primes (Intermediate)
- Counting Bits (Intermediate)
- Reverse Integer (Intermediate)
- Minimum in a Rotated Sorted Array (Intermediate)
- Merge Intervals (Intermediate)
- Insert an Interval (Intermediate)
- Permutation Inside a String (Intermediate)
- Subarrays With Product Less Than K (Intermediate)
- Zigzag Conversion (Intermediate)
- Compare Version Numbers (Intermediate)
- Count Palindromic Substrings (Intermediate)
- Find K Closest Elements (Intermediate)
- Longest Substring With At Most K Letters (Intermediate)
- Minimum Knight Moves (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Maximum Circular Subarray (Intermediate)
- Best Time to Buy and Sell Stock II (Intermediate)
- House Robber II (Intermediate)
- Gas Station (Intermediate)
- Container With Most Water (Intermediate)
- Top K Frequent Values (Intermediate)
- Shortest Path In Binary Grid (Intermediate)
- Is Bipartite (Intermediate)
- Course Schedule Feasible (Intermediate)
- LFU Cache Operations (Intermediate)
- Median of Sliding Windows (Intermediate)
- Sparse Vector Dot Product (Intermediate)
- Snapshot Array (Intermediate)
- Hit Counter (Intermediate)
- Text Justification (Intermediate)
- Remove Nth Node From End (Intermediate)
- Odd Even Linked List (Intermediate)
- Reorder Linked List (Intermediate)
- Validate Binary Search Tree (Intermediate)
- Binary Tree Right Side View (Intermediate)
- Zigzag Level Order Traversal (Intermediate)
- Lowest Common Ancestor of Two Values (Intermediate)
- Design Linked List Operations (Intermediate)
- Rotting Oranges (Intermediate)
- Course Schedule Order (Intermediate)
- Cheapest Flights Within K Stops (Intermediate)
- Snakes and Ladders (Intermediate)
- Interleaving String (Intermediate)
- Maximal Square (Intermediate)
- Minimum Falling Path Sum (Intermediate)
- Longest Happy Prefix (Intermediate)
- String to Integer (Intermediate)
- Word Search (Intermediate)
- Determine if Two Strings Are Close (Intermediate)
- Brace Expansion (Intermediate)
- Validate IP Address (Intermediate)
- Evaluate Reverse Polish Notation (Intermediate)
- Basic Calculator II (Intermediate)
- Simplify Path (Intermediate)
- Exclusive Time of Functions (Intermediate)
- Sum of Subarray Ranges (Intermediate)
- Design Circular Queue (Intermediate)
- K Closest Points to Origin (Intermediate)
- Task Scheduler (Intermediate)
- Jump Game II (Intermediate)
- Interval List Intersections (Intermediate)
- Valid Sudoku (Intermediate)
- Rotate Image (Intermediate)
- H-Index (Intermediate)
- 3Sum Triplets (Intermediate)
Related
Frequently asked questions
How should I use the Apple problem list?
Start with the basic problems, then the intermediate and advanced ones, and note which topics repeat. Solve each under a timer, then read the explanation.
Are these the exact Apple interview questions?
They are problems candidates reported being asked. Companies rotate questions, so use them to learn the patterns, not to predict the exact question.