Apple

Apple Software Engineer Onsite Coding Questions

100+ questions from real Apple Software Engineer Onsite Coding rounds, reported by candidates who interviewed there.

100
Questions
8
Topic Areas
10+
Sources

What does the Apple Onsite Coding round test?

The Apple onsite coding round is the core technical evaluation. Software Engineer candidates typically see 2-3 algorithm and data structure problems. Problems range from medium to hard difficulty, and interviewers evaluate both correctness and code quality.

Top Topics in This Round

Apple Software Engineer Onsite Coding Questions

Apple Two-Round Pure Coding Interview Experience: Prefix Sum and Tree Iterator

Prefix Sum,Hash Table,Binary Tree,Stack,Concurrency,Arrays 2026

Given an integer array nums and an integer k, find all continuous subarrays whose sum is exactly equal to k.Solution ApproachUse prefix sum + hash map. Maintain the current prefix sum sum. If sum - k

Apple additional coding interview after onsite

General Experience,Interview Process 2025

Hey guys, I have received positive feedback from recruiters after panel interview with Apple three weeks ago and we discussed salary expectations. I was told that the verbal offer will come in a week

hi everyone, i have my final virtual onsite for Apple\'s Siri Rotational Program. i have been told the focus of each interview in the onsite. there are 5 total, but...

Apple Onsite

Arrays 2020

Apple onsite interview question. Design a class which implements following functions: func insertOrReplace(_ item: Int, at index: Int) func getMinIndex(of element: Int) -> Int

#146 LRU Cache

Hash Table, Linked List, Design, Doubly Linked List

LeetCode #146: LRU Cache. Difficulty: Medium. Topics: Hash Table, Linked List, Design, Doubly-Linked List. Asked at Apple in the last 6 months.

#362 Design Hit Counter

Arrays, Binary Search, Design, Queue, Data Stream

LeetCode #362: Design Hit Counter. Difficulty: Medium. Topics: Array, Binary Search, Design, Queue, Data Stream. Asked at Apple in the last 6 months.

#1 Two Sum

Arrays, Hash Table

LeetCode #1: Two Sum. Difficulty: Easy. Topics: Array, Hash Table. Asked at Apple in the last 6 months.

#200 Number of Islands

Arrays, Graph, Matrix, Bfs, Dfs, Union Find

LeetCode #200: Number of Islands. Difficulty: Medium. Topics: Array, Depth-First Search, Breadth-First Search, Union-Find, Matrix. Asked at Apple in the last 6 months.

#206 Reverse Linked List

Linked List, Recursion

LeetCode #206: Reverse Linked List. Difficulty: Easy. Topics: Linked List, Recursion. Asked at Apple in the last 6 months.

#210 Course Schedule II

Graph, Bfs, Dfs, Topological Sort

LeetCode #210: Course Schedule II. Difficulty: Medium. Topics: Depth-First Search, Breadth-First Search, Graph Theory, Topological Sort. Asked at Apple in the last 6 months.

#53 Maximum Subarray

Arrays, Dynamic Programming, Divide And Conquer

LeetCode #53: Maximum Subarray. Difficulty: Medium. Topics: Array, Divide and Conquer, Dynamic Programming. Asked at Apple in the last 6 months.

#56 Merge Intervals

Arrays, Sorting

LeetCode #56: Merge Intervals. Difficulty: Medium. Topics: Array, Sorting. Asked at Apple in the last 6 months.

#253 Meeting Rooms II

Arrays, Heap, Sorting, Greedy, Two Pointers, Prefix Sum

LeetCode #253: Meeting Rooms II. Difficulty: Medium. Topics: Array, Two Pointers, Greedy, Sorting, Heap (Priority Queue), Prefix Sum. Asked at Apple in the last 6 months.

#713 Subarray Product Less Than K

Arrays, Binary Search, Sliding Window, Prefix Sum

LeetCode #713: Subarray Product Less Than K. Difficulty: Medium. Topics: Array, Binary Search, Sliding Window, Prefix Sum. Asked at Apple in the last 6 months.

#981 Time Based Key-Value Store

Hash Table, Strings, Binary Search, Design

LeetCode #981: Time Based Key-Value Store. Difficulty: Medium. Topics: Hash Table, String, Binary Search, Design. Asked at Apple in the last 6 months.

#1146 Snapshot Array

Arrays, Hash Table, Binary Search, Design

LeetCode #1146: Snapshot Array. Difficulty: Medium. Topics: Array, Hash Table, Binary Search, Design. Asked at Apple in the last 6 months.

#23 Merge k Sorted Lists

Linked List, Heap, Sorting, Divide And Conquer, Recursion

LeetCode #23: Merge k Sorted Lists. Difficulty: Hard. Topics: Linked List, Divide and Conquer, Heap (Priority Queue), Merge Sort. Asked at Apple in the last 6 months.

#49 Group Anagrams

Arrays, Hash Table, Strings, Sorting

LeetCode #49: Group Anagrams. Difficulty: Medium. Topics: Array, Hash Table, String, Sorting. Asked at Apple in the last 6 months.

LeetCode #238: Product of Array Except Self. Difficulty: Medium. Topics: Array, Prefix Sum. Asked at Apple in the last 6 months.

#347 Top K Frequent Elements

Arrays, Hash Table, Heap, Sorting, Bucket Sort, Divide And Conquer

LeetCode #347: Top K Frequent Elements. Difficulty: Medium. Topics: Array, Hash Table, Divide and Conquer, Sorting, Heap (Priority Queue), Bucket Sort, Counting, Quickselect. Asked at Apple in the last 6 months.

See All 100 Questions from This Round

Full question text, answer context, and frequency data for subscribers.

Get Access