Now practice all your interviews before giving the real one

( Apple interview questions )

Apple interview questions, and how to answer them.

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.

What Apple interviews ask, in our data

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.

Coding questions
164
Easy / medium / hard
42 / 107 / 15
Top topic
Arrays & hashing
Page data updated
29 November 2026

( Questions )

15 Apple questions to practise.

Linked list

  1. 1

    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.

  2. 2

    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.

Arrays & hashing

  1. 3

    Two SumEasy

    Given an array of integers nums and an integer target, return the positions of the two numbers that add up to target.

  2. 4

    Longest Leading MatchEasy

    Given an array of strings strs, return the longest sequence of leading characters that appears at the beginning of every string.

  3. 5

    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.

Intervals

  1. 6

    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.

Graphs

  1. 7

    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.

  2. 8

    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.

  3. 9

    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.

Sliding window

  1. 10

    Longest Unique StretchMedium

    Given a string s, return the length of the longest stretch of consecutive characters in which no character appears twice.

  2. 11

    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.

Stack

  1. 12

    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.

Math & bits

  1. 13

    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.

Two pointers

  1. 14

    Palindrome CheckEasy

    Take a string s, turn every uppercase letter into lowercase, and drop every character that is not a letter or a digit.

  2. 15

    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

Apple interview: questions and answers

What coding questions does Apple ask?

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.

How hard are Apple coding questions?

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.

Are these the real Apple interview questions?

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.

Can I practise a Apple interview for free?

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

Say it out loud once before it counts.

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.