Apple Software Engineer Coding & Algorithms Interview Questions

Practice 41 real Coding & Algorithms interview questions for Software Engineer roles at Apple.

41 Questions 1 Company08.09.2026
Showing 20 results
Role
Apple logo
Apple
Medium
Software Engineer

Find the K Closest Pairs in a Sorted Array

Implement k_closest_pairs(nums, k) for a strictly increasing sorted array. Consider every pair of indices (i, j) with i < j. Its distance is nums[j] -...

Coding & Algorithms
0
1
9 people solved
Aug 9, 2026
Apple logo
Apple
Medium
Software Engineer

Determine Whether an Undirected Graph Is Two-Colorable

Determine Whether an Undirected Graph Is Two-Colorable Given an undirected graph with nodes labeled 0 through n - 1, determine whether every node can ...

Coding & Algorithms
9
0
91 people solved
Jul 13, 2026
Apple logo
Apple
Easy
Software Engineer

Solve three easy algorithm problems

You are given three independent algorithmic tasks. For each one, explain your approach (no need to run code). 1) Merge two sorted lists (integers inst...

Coding & Algorithms
33
0
285 people solved
Nov 11, 2025
Apple logo
Apple
Medium
Software Engineer

Minimal Unique Word Abbreviations

Minimal Unique Word Abbreviations You are given an array words of n distinct strings. Produce a minimal abbreviation for every word according to the r...

Coding & Algorithms
1
0
10 people solved
Jun 30, 2026
Apple logo
Apple
Easy
Software Engineer Locked

Implement flood fill using BFS and DFS

This question evaluates proficiency in graph traversal and matrix manipulation, specifically the implementation of BFS and DFS variants for flood fill...

Coding & Algorithms
15
0
185 people solved
Jan 22, 2026
Apple logo
Apple
Medium
Software Engineer

Implement a FIFO Queue Using Two Stacks

Implement a FIFO Queue Using Two Stacks Implement a first-in-first-out (FIFO) queue using only two last-in-first-out (LIFO) stacks. The implemented qu...

Coding & Algorithms
3
0
11 people solved
Jun 30, 2026
Apple logo
Apple
Medium
Software EngineerNew Grad

Solve interval, grid-fill, and heap tasks

You are asked to solve the following algorithmic problems. Problem 1: Concurrent users from online intervals You are given n inclusive time intervals ...

Coding & Algorithms
15
0
194 people solved
Nov 27, 2025
Apple logo
Apple
Hard
Software Engineer Locked

Minimum Cells to Bridge a Magic Grid

This question evaluates proficiency in graph traversal and shortest-path optimization within a 2D grid, testing the ability to find minimum-cost conne...

Coding & Algorithms
1
0
15 people solved
Jun 8, 2026
Apple logo
Apple
Medium
Software Engineer

Vertical Order Traversal of a Binary Tree

Vertical Order Traversal of a Binary Tree You are given the root of a binary tree. Return the vertical order traversal of its nodes' values — that is,...

Coding & Algorithms
1
0
15 people solved
Jun 30, 2026
Apple logo
Apple
Medium
Software Engineer

Convert a Roman Numeral to an Integer

Convert a Roman Numeral to an Integer Roman numerals are written with seven symbols, each with a fixed integer value: | Symbol | Value | |--------|---...

Coding & Algorithms
0
0
9 people solved
Jun 30, 2026
Apple logo
Apple
Medium
Software Engineer

Solve 15 common Apple coding questions

The post summarizes high-frequency coding problems reported for Apple Software Engineer interviews. Practice the following algorithm and data-structur...

Coding & Algorithms
25
0
182 people solved
Jan 30, 2026
Apple logo
Apple
Medium
Software Engineer

Find top-k frequent elements efficiently

Given an array (or stream) of integers and an integer k, return any ordering of the k most frequent values. Implement a solution using a heap and disc...

Coding & Algorithms
10
0
90 people solved
Sep 6, 2025
Apple logo
Apple
Medium
Software Engineer

Compute top three scores per student

Compute top three scores per student You are given a list of (student_id, score) records. Return, for each student, their highest three scores in desc...

Coding & Algorithms
7
0
80 people solved
Aug 9, 2025
Apple logo
Apple
Medium
Software Engineer

Implement deep clone for complex objects

Implement a deep-clone function for nested objects in JavaScript (or a language of your choice) without using JSON serialization or third-party librar...

Coding & Algorithms
10
0
97 people solved
Sep 6, 2025
Apple logo
Apple
Medium
Software Engineer

Refactor rock–paper–scissors for config and ties

Refactor an existing Rock–Paper–Scissors tournament with three robot players so that the number of rounds is configurable and the system also tracks t...

Coding & Algorithms
7
0
130 people solved
Sep 6, 2025
Apple logo
Apple
Medium
Software Engineer Locked

Compute Earliest Bus Arrival

This question evaluates proficiency with shortest-path algorithms and time-dependent graph modeling, focusing on reasoning about travel times combined...

Coding & Algorithms
5
1
25 people solved
Apr 18, 2026
Apple logo
Apple
Medium
Software Engineer Locked

Implement a debounce function

This question evaluates a candidate's ability to implement a debounce utility using runtime features such as closures, timers, and function-context pr...

Coding & Algorithms
13
0
130 people solved
Feb 12, 2026
Apple logo
Apple
Medium
Software Engineer Locked

Merge overlapping time intervals

This question evaluates competence in interval and array manipulation, sorting-based algorithm design, overlap detection, and efficient time/space com...

Coding & Algorithms
15
1
132 people solved
Feb 12, 2026
Apple logo
Apple
Medium
Software Engineer Locked

Solve linked list, grid BFS, and median queries

This multi-part question evaluates proficiency in in-place linked list manipulation, reasoning about shortest connections between connected components...

Coding & Algorithms
26
0
315 people solved
Jan 22, 2026
Apple logo
Apple
Medium
Software Engineer

Implement rotation, LRU cache, streaming median, cycle detection

Complete the following coding tasks. For each, provide code, justify time/space complexity, and describe edge cases: 1) Image rotation: Given an n×n i...

Coding & Algorithms
11
0
121 people solved
Sep 6, 2025

Explore more Apple Software Engineer interview questions

Real questions from candidate reports, grouped by topic.

Other Apple Software Engineer categories
Browse all