Apple Senior coding interview questions
These are the 7 coding questions YourAlly has tagged for Apple at Senior. On the YourAlly ladder this is Senior, the same level as Google L5, Meta E5 and Amazon L6.
A coding round at a large tech company usually runs 45 to 60 minutes with one or two problems. You write code that runs, test it on your own examples and state its time and space cost. At this level the bar is a correct, tested solution you reach mostly on your own, with the trade-offs said out loud.
Practice a mock Apple Senior coding loopPractice Apple coding questions
Recover Keyboard Locale OrderingFree to read
A new keyboard locale sorts words by an unknown letter order. Given a word list already sorted in that order, return a string of every letter that appears, in an order consistent with the list, choosing the smallest standard letter whenever several fit. Return an empty string if the list is inconsistent.
Input: words = ["wrt","wrf","er","ett","rftt"] Output: "wertf"
What a strong answer covers
- Edges from first differing letter of adjacent words
- Prefix violation check
- Includes letters with no edges
- Kahn's algorithm with cycle detection
- Deduplicated edges
6 more coding questions
- Thumbnail LFU Cache Locked
- Visible Outline of Stacked Widgets Locked
- Longest Unique Substring Locked
- Minimal Edit Script Locked
- Run-Length Encode Locked
- Validate IPv4 CIDR Containment Locked
Related pages
More Apple Senior rounds
- System design 4 questions
- Behavioral 9 questions
- Project retrospective 3 questions
Apple coding at other levels
- Staff 7 questions
- Senior staff 7 questions
- Senior EM 4 questions
Other companies at this level
- Adobe Senior 7 questions
- Airbnb Senior 4 questions
- Amazon L6 10 questions
- Anthropic Senior 6 questions
- Cisco Senior 6 questions
- Google L5 14 questions