Apple String Coding Interview Questions
64 string coding problems are tagged as asked at Apple in interviews and online assessments reported by candidates. By difficulty they split into 18 basic, 32 intermediate and 14 advanced. The topics they most often combine with are Math, Stack, Hash Table, Bit Manipulation.
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
- Valid Parentheses (Basic)
- Longest Substring Without Repeats (Intermediate)
- Reverse String (Basic)
- First Unique Character (Basic)
- Valid Palindrome (Basic)
- Decode Ways (Intermediate)
- Longest Palindromic Substring (Intermediate)
- Valid Anagram (Basic)
- Ransom Note (Basic)
- Reverse Words in a String (Basic)
- Reverse Vowels of a String (Basic)
- Roman to Integer (Intermediate)
- Add Binary (Basic)
- Longest Common Subsequence (Advanced)
- Edit Distance (Advanced)
- Valid Parenthesis With Wildcards (Advanced)
- Permutation Inside a String (Intermediate)
- Zigzag Conversion (Intermediate)
- Compare Version Numbers (Intermediate)
- Count Palindromic Substrings (Intermediate)
- Longest Substring With At Most K Letters (Intermediate)
- Minimum Window Substring (Advanced)
- Reconstruct Itinerary (Advanced)
- Text Justification (Intermediate)
- Zigzag Level Order Traversal (Intermediate)
- Level Order Traversal (Basic)
- Similar String Groups (Advanced)
- Alien Dictionary Order (Advanced)
- Interleaving String (Intermediate)
- Regular Expression Matching (Advanced)
- Find First Occurrence (Basic)
- Longest Happy Prefix (Intermediate)
- String Compression (Basic)
- String to Integer (Intermediate)
- Integer to English Words (Advanced)
- Word Search (Intermediate)
- Word Search II Count (Advanced)
- Determine if Two Strings Are Close (Intermediate)
- Goat Latin (Basic)
- Brace Expansion (Intermediate)
- Validate IP Address (Intermediate)
- Evaluate Reverse Polish Notation (Intermediate)
- Basic Calculator (Advanced)
- Basic Calculator II (Intermediate)
- Simplify Path (Intermediate)
- Exclusive Time of Functions (Intermediate)
- Task Scheduler (Intermediate)
- Valid Sudoku (Intermediate)
- Shortest Word Distance (Basic)
- Valid Palindrome With One Deletion (Basic)
- Substring With Concatenation of All Words (Advanced)
- Time Based Key-Value Store (Intermediate)
- Sudoku Solver (Advanced)
- Letter Combinations of a Phone Number (Intermediate)
- Implement Trie Operations (Intermediate)
- Add and Search Words (Intermediate)
- Browser History (Intermediate)
- Logger Rate Limiter (Basic)
- Sentence Similarity II (Intermediate)
- One Edit Distance (Basic)
- Short Encoding of Words (Intermediate)
- Parse Lisp Expression (Advanced)
- Fizz Buzz (Basic)
- Longest Repeating Character Replacement (Intermediate)
Related
- Apple coding interview questions
- String problems
- Apple basic problems
- Apple intermediate problems
- Apple advanced problems
- Company interview roadmaps
- All interview guides
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.