Apple
6 questions · Coding · System design · Behavioral
Reverse a singly linked list in place.
CodingApproachIterate with three pointers (prev, curr, next), rewiring links; discuss the recursive variant and its stack cost.
EvaluatesPointer manipulation, in-place mutation, and clarity under a deceptively simple task.
Determine whether a string of brackets is balanced.
CodingApproachPush opens onto a stack; on a close, pop and match. Empty stack at the end means valid.
EvaluatesStack intuition and handling of mismatched/empty edge cases.
Return the k-th largest element in an unsorted array.
CodingApproachA size-k min-heap, or quickselect for average O(n); discuss the trade-offs.
EvaluatesHeap vs. selection trade-offs and awareness of average vs. worst case.
Design a URL shortener (like TinyURL).
System designApproachTalk through the API, a hash/base-62 key scheme, storage and read/write ratio, caching hot links, and redirects.
EvaluatesScoping, key generation, read-heavy scaling, and caching decisions.
Describe a project you are most proud of and your specific contribution.
BehavioralApproachAnchor to measurable impact; be crisp about what YOU did vs. the team, and the trade-offs you made.
EvaluatesOwnership, impact, and honest self-attribution.
Tell me about a time you failed and what you changed afterward.
BehavioralApproachPick a real failure, own it without blaming others, and show the concrete lesson you applied later.
EvaluatesSelf-awareness, accountability, and growth.
Practice these with a free AI mock
Get graded on your real answers, with feedback after every round.
Practice free