Apple Coding Interview Questions: 33 Tagged Problems
33 coding problems tagged Apple — 15 easy · 10 medium · 8 hard — with solutions in 13 languages. Plus a 4-week study plan by topic.
- Problems: 33
- By difficulty: 15 easy · 10 medium · 8 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
33 problems the CodeKairo catalogue tags as commonly asked in Apple's coding rounds — 15 easy, 10 medium and 8 hard — each judged by hidden tests in 13 languages. The most common topics among them are Math (12), Arrays (10) and Bit Manipulation (8). CodeKairo's Apple — Coding Assessment mock covers the Apple coding assessment pattern, the least standardised in this catalogue because it is set team by team. The tag is the catalogue's own annotation of where a problem tends to come up — not a list published by Apple, which CodeKairo is not affiliated with.
Apple study plan by topic
All 33 problems tagged Apple over 4 weeks, about 17 h 30 min of solving, grouped by technique in the order they build on each other — Hash Table, Counting, Math and Two Pointers and 14 more. It ends with the Apple — Coding Assessment mock.
Week 1: Hash Table, Counting, Math +5
12 problems on Hash Table, Counting, Math, Two Pointers, Binary Search, Stack, Queue and Matrix, easiest first within each topic.
- Design HashSet Easy
- Ransom Note Easy
- Plus One Easy
- Reverse String Easy
- Reverse Linked List II Medium
- Find K-th Smallest Pair Distance Hard
- Kth Smallest Number in Multiplication Table Hard
- Number of Atoms Hard
- Implement Queue using Stacks Easy
- Design Circular Queue Medium
- Maximal Square Medium
- Valid Sudoku Medium
Week 2: Simulation, Enumeration, Recursion +1
7 problems on Simulation, Enumeration, Recursion and Divide and Conquer, easiest first within each topic.
- Available Captures for Rook Easy
- Complex Number Multiplication Medium
- Powerful Integers Medium
- Merge Two Sorted Lists Easy
- Reverse Linked List Easy
- Palindrome Linked List Easy
- Number of 1 Bits Easy
Week 3: Bit Manipulation, Number Theory, Trees +1
12 problems on Bit Manipulation, Number Theory, Trees and Breadth-First Search, easiest first within each topic.
- Counting Bits Easy
- Power of Two Easy
- Number Complement Easy
- Convert Binary Number in a Linked List to Integer Easy
- Sum of Two Integers Medium
- Divide Two Integers Medium
- Minimum One Bit Operations to Make Integers Zero Hard
- Nth Magical Number Hard
- Smallest Good Base Hard
- Search in a Binary Search Tree Easy
- Pacific Atlantic Water Flow Medium
- Sliding Puzzle Hard
Week 4: Depth-First Search, Geometry
2 problems on Depth-First Search and Geometry, easiest first within each topic.
- Array Nesting Medium
- Max Points on a Line Hard
Finally: the timed test
Sit the Apple — Coding Assessment mock under the clock — the coding problems are only one part of the round.
Apple test patterns
- Apple — Coding Assessment pattern guide and timed mock
The Apple interview process, round by round
All problems tagged Apple
Easy (15)
- Design HashSet Array, Hash Table, Design
- Implement Queue using Stacks Stack, Queue, Design
- Convert Binary Number in a Linked List to Integer Linked List, Math, Bit Manipulation
- Palindrome Linked List Linked List, Two Pointers, Stack
- Reverse Linked List Linked List, Recursion
- Merge Two Sorted Lists Linked List, Recursion, Two Pointers
- Search in a Binary Search Tree Tree, Binary Search
- Available Captures for Rook Array, Matrix, Simulation
- Number Complement Bit Manipulation
- Counting Bits Dynamic Programming, Bit Manipulation
- Number of 1 Bits Divide and Conquer, Bit Manipulation
- Ransom Note Hash Table, String, Counting
- Plus One Array, Math
- Power of Two Math, Bit Manipulation
- Reverse String Two Pointers, String
Medium (10)
- Design Circular Queue Array, Queue, Design
- Reverse Linked List II Linked List, Two Pointers
- Powerful Integers Hash Table, Math, Enumeration
- Complex Number Multiplication Math, String, Simulation
- Array Nesting Array, Depth-First Search
- Pacific Atlantic Water Flow Array, Depth-First Search, Breadth-First Search
- Divide Two Integers Math, Bit Manipulation
- Sum of Two Integers Math, Bit Manipulation
- Valid Sudoku Array, Hash Table, Matrix
- Maximal Square Array, Dynamic Programming, Matrix
Hard (8)
- Number of Atoms Hash Table, String, Stack
- Sliding Puzzle Array, Matrix, Breadth-First Search
- Kth Smallest Number in Multiplication Table Math, Binary Search
- Find K-th Smallest Pair Distance Array, Two Pointers, Binary Search
- Minimum One Bit Operations to Make Integers Zero Bit Manipulation, Math, Dynamic Programming
- Smallest Good Base Math, Binary Search, Number Theory
- Nth Magical Number Math, Binary Search, Number Theory
- Max Points on a Line Hash Table, Math, Geometry
Topics Apple asks most
- Math 12 problems
- Arrays 10 problems
- Bit Manipulation 8 problems
- Hash Table 6 problems
- Two Pointers 5 problems
- Binary Search 5 problems
- Matrix 5 problems
- Strings 4 problems
- Stack 3 problems
- Recursion 3 problems
- Dynamic Programming 3 problems
- Sorting 2 problems