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

Compute island size in grid

Compute island size in grid Given an m x n binary matrix grid of 0s (water) and 1s (land), where an island is a group of 1s connected 4-directionally,...

Coding & Algorithms
8
0
61 people solved
Aug 9, 2025
Apple logo
Apple
Medium
Software Engineer Locked

Find k Smallest Pair Sums

This question evaluates skills in algorithm design, working with sorted arrays, pairing and ordering elements, and analyzing time and space complexity...

Coding & Algorithms
9
0
65 people solved
Dec 22, 2025
Apple logo
Apple
Medium
Software EngineerSenior+

Solve Digit-Square and Grid BFS Problems

Solve the following coding problems. Problem 1: Digit-square convergence Given a positive integer n, repeatedly replace n with the sum of the squares ...

Coding & Algorithms
0
0
9 people solved
Oct 28, 2025
Apple logo
Apple
Medium
Software Engineer

Implement DFS for connected components

Given an undirected graph with n nodes (1 ≤ n ≤ 200, 000) and an edge list, implement depth-first search to compute (a) the number of connected compon...

Coding & Algorithms
9
0
60 people solved
Sep 6, 2025
Apple logo
Apple
Medium
Software Engineer

Compute minimum required meeting rooms

Given a list of meeting time intervals [start, end) for many events, determine the minimum number of rooms required so no meetings overlap in the same...

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

Design a snapshotable key-value store

Design a snapshotable key-value store Design and implement a snapshotable key–value map supporting the following APIs: - S(key, value): set the curren...

Coding & Algorithms
11
0
131 people solved
Aug 8, 2025
Apple logo
Apple
Medium
Software Engineer

Maximize funds with capital-gated projects

Maximize funds with capital-gated projects You start with initial funds W and may undertake at most K projects. Each project i has a required capital ...

Coding & Algorithms
4
0
59 people solved
Jul 16, 2025
Apple logo
Apple
Medium
Software Engineer

Solve Subset Sum And Return All Matching Subsets

Given an array of non-negative integers and a target, first determine whether any subset sums to the target using dynamic programming with O(target) s...

Coding & Algorithms
2
0
7 people solved
Jul 6, 2026
Apple logo
Apple
Easy
Software Engineer Locked

Find Common Prefix Across Strings

This question evaluates proficiency in string manipulation and array processing, focusing on identifying common prefixes, handling edge cases such as ...

Coding & Algorithms
5
0
25 people solved
May 22, 2026
Apple logo
Apple
Hard
Software Engineer

Find the Extra Edge

You are given an undirected graph that started as a tree with n nodes labeled from 1 to n. One additional edge was then added between two different ex...

Coding & Algorithms
13
0
88 people solved
Apr 14, 2026
Apple logo
Apple
Medium
Software Engineer Locked

Rotate a Matrix In Place

This question evaluates proficiency in in-place matrix and array manipulation, understanding of spatial transformations, and consideration of space an...

Coding & Algorithms
3
0
57 people solved
Apr 4, 2026
Apple logo
Apple
Medium
Software Engineer

Generate Tower of Hanoi moves

You are given n disks of different sizes stacked on peg A (largest at bottom). You have two other pegs, B and C. You may move one disk at a time, and ...

Coding & Algorithms
9
0
88 people solved
Mar 6, 2026
Apple logo
Apple
Hard
Software Engineer

Compute conflicts and minimum meeting rooms

You are given a list of meeting room booking requests. Each request is a half-open time interval [start, end), meaning it uses the room starting at st...

Coding & Algorithms
20
0
186 people solved
Feb 12, 2026
Apple logo
Apple
Medium
Software Engineer

Zero out duplicates and sort an array

Coding question You are given an integer array arr of length about 75. - The data is not sorted. - The array may contain duplicate values. - You must ...

Coding & Algorithms
20
0
180 people solved
Feb 12, 2026
Apple logo
Apple
Hard
Software Engineer Locked

Implement a lazy inorder traversal iterator

This question evaluates understanding of binary tree traversal and iterator design, specifically the implementation of a lazy inorder iterator under t...

Coding & Algorithms
7
0
74 people solved
Feb 11, 2026
Apple logo
Apple
Hard
Software Engineer Locked

Count subarrays with sum equals k

This question evaluates a candidate's competency in array algorithms and reasoning about contiguous subarray sums, including correct handling of negat...

Coding & Algorithms
23
0
171 people solved
Feb 11, 2026
Apple logo
Apple
Medium
Software EngineerIntern

Solve mixed coding tasks from interviews

Solve the following interview-style coding problems (you may choose any programming language unless specified). Provide correct logic and handle edge ...

Coding & Algorithms
11
0
115 people solved
Feb 9, 2026
Apple logo
Apple
Medium
Software Engineer

Solve 15 common interview problems

Below are fifteen independent coding problems commonly discussed in software engineering interviews. For each one, write an efficient algorithm and be...

Coding & Algorithms
8
0
83 people solved
Jan 27, 2026
Apple logo
Apple
Medium
Software Engineer

Design card deck with shuffle and order

Design a playing-card deck library with two methods: shuffle() to return a uniformly random permutation of a standard 52-card deck, and order() to ret...

Coding & Algorithms
3
0
68 people solved
Sep 6, 2025
Apple logo
Apple
Medium
Software Engineer

Sort and merge string lists by length

Given two unsorted lists of strings, return a single list sorted by ascending string length. Specify your tie-breaking rule for equal-length strings (...

Coding & Algorithms
5
0
63 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
Apple Software Engineer Coding & Algorithms Questions (Updated 2026) — Page 2 | PracHub