Now practice all your interviews before giving the real one
( Apple interview questions )
15 questions candidates report from Apple interviews, grouped by topic, with a short note on how to answer each kind. Then say your answers out loud in a practice interview.
5 minutes, no CV needed. A practice round, not Apple's own.
Our bank holds 164 coding questions that candidates report from Apple interviews. The topics that come up most: arrays & hashing (27), math & bits (19), graphs (14) and dynamic programming, 1-D (13). Of the 164 coding questions, 42 are easy, 107 medium and 15 hard.
Our data covers coding questions for Apple; it says nothing about their other rounds, so we don't guess. These are practice questions based on what candidates report on public, community-kept lists, each written in our own words. RoundAlpha is not linked to Apple.
( Questions )
Recently Used CacheMedium
Build a cache that holds at most capacity keys and, once it is full, makes room by throwing out the key that was used longest ago.
Reverse a Linked ListEasy
head is the first node of a linked list. Each node holds a number, val, and a link to the node after it, next; the last node's next is null.
Two SumEasy
Given an array of integers nums and an integer target, return the positions of the two numbers that add up to target.
Longest Leading MatchEasy
Given an array of strings strs, return the longest sequence of leading characters that appears at the beginning of every string.
Group by LettersMedium
Given a list of words, put words that are made of exactly the same letters, each used the same number of times, into the same group.
Merge RangesMedium
You are given a list of ranges, each written as [start, end]. Merge every group of ranges that overlap or touch, and return the merged ranges sorted by their start.
Count IslandsMedium
You are given a map of the sea as a grid of "1"s and "0"s: "1" is land and "0" is water. An island is a group of land cells joined up, down, left or right.
Can You Finish the Courses?Medium
There are numCourses courses, numbered from 0 to numCourses - 1. Some courses need others first: prerequisites[i] = [a, b] means you must finish course b before you can take course a.
Course OrderMedium
There are numCourses courses, numbered from 0 to numCourses - 1. Some courses need others first: prerequisites[i] = [a, b] means you must finish course b before you can take course a.
Longest Unique StretchMedium
Given a string s, return the length of the longest stretch of consecutive characters in which no character appears twice.
Best Day to SellEasy
prices[i] is the price of one share on day i. You may buy one share on one day and sell it on a later day.
Balanced BracketsEasy
A string s is made only of the characters ( ) [ ] { }. Return true if every opening bracket is closed by a bracket of the same kind, and the brackets close in the right order.
Rotate a GridMedium
You are given an n × n grid of numbers. Turn it a quarter turn clockwise and return it: the top row becomes the right-hand column, the right-hand column becomes the bottom row, and so on round.
Palindrome CheckEasy
Take a string s, turn every uppercase letter into lowercase, and drop every character that is not a letter or a digit.
Last to FirstMedium
Given a string s, return its words in the opposite sequence while keeping the characters inside each word unchanged.
Want to write the code too? The Apple list on our coding practice page runs your answer against hidden tests, in six languages.
Questions
Our bank holds 164 coding questions that candidates report from Apple interviews. The topics that come up most: arrays & hashing (27), math & bits (19), graphs (14) and dynamic programming, 1-D (13). This page shows 15 of them, grouped by topic.
Of the 164 coding questions, 42 are easy, 107 medium and 15 hard. The level you meet depends on the role and your experience, so practise easy and medium ones until you can explain them out loud, then add hard ones.
They are practice questions based on what candidates report from Apple interviews on public, community-kept lists. Each one is written in our own words. RoundAlpha is not linked to Apple, and no list can promise what a given interviewer will ask.
Yes. A new account you sign up for yourself gets one short free practice interview. Name Apple as the company and the interviewer leans its questions toward that company. You can choose "No CV this time", so no CV is needed. You talk out loud and get a scored report at the end.
Read next
Ready when you are
A short practice interview with Apple named as the company, then a scored report on every answer.
5 minutes, no CV needed. A practice round, not Apple's own.