Apple Coding Interview Questions: 19 Tagged Problems
19 coding problems tagged Apple — 7 easy · 5 medium · 7 hard — with solutions in 13 languages. Plus a 2-week study plan by topic.
- Problems: 19
- By difficulty: 7 easy · 5 medium · 7 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
19 problems the CodeKairo catalogue tags as commonly asked in Apple's coding rounds — 7 easy, 5 medium and 7 hard — each judged by hidden tests in 13 languages. The most common topics among them are Math (9), Bit Manipulation (7) and Arrays (6). 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 19 problems tagged Apple over 2 weeks, about 11 h 5 min of solving, grouped by technique in the order they build on each other — Counting, Math, Two Pointers and Binary Search and 7 more. It ends with the Apple — Coding Assessment mock.
Week 1: Counting, Math, Two Pointers +3
8 problems on Counting, Math, Two Pointers, Binary Search, Matrix and Divide and Conquer, easiest first within each topic.
- Ransom Note Easy
- Plus One Easy
- Reverse String Easy
- Find K-th Smallest Pair Distance Hard
- Kth Smallest Number in Multiplication Table Hard
- Maximal Square Medium
- Valid Sudoku Medium
- Number of 1 Bits Easy
Week 2: Bit Manipulation, Number Theory, Breadth-First Search +2
11 problems on Bit Manipulation, Number Theory, Breadth-First Search, Depth-First Search and Geometry, easiest first within each topic.
- Counting Bits Easy
- Power of Two Easy
- Number Complement 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
- Sliding Puzzle Hard
- Pacific Atlantic Water Flow 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
All problems tagged Apple
Easy (7)
- 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 (5)
- 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 (7)
- 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 9 problems
- Bit Manipulation 7 problems
- Arrays 6 problems
- Binary Search 4 problems
- Matrix 4 problems
- Hash Table 3 problems
- Dynamic Programming 3 problems
- Strings 2 problems
- Two Pointers 2 problems
- Number Theory 2 problems
- Breadth-First Search 2 problems
- Counting 1 problem