Explore questions associated with Apple. Review the source details, then use the workspace for code, notes, and diagrams.
187 questions in the library. A source association does not guarantee a future interview question.
Behavioral and leadership · Coding · Machine learning · ML system design · Other questions · System design
Loading questions…
Showing 176–187
They asked me to design a memory-efficient algorithm to detect if a linked list contains a cycle, then optimize it for both time and space…
Companies: Apple
Given an array of nonnegative integers, compute the sum of Hamming distances over all pairs of numbers. Key idea: for each bit position, count how…
Companies: Apple
Array · Bit Manipulation · Math
Given an array of integers and a target, return the indices of two distinct elements whose values sum to the target (exactly one valid solution…
Companies: Apple, Amazon, Bloomberg, Brex +13
Array · Hash Table
Companies: Apple
Companies: Apple
Companies: Apple
Companies: Apple
Find the length of the shortest transformation sequence from beginWord to endWord where each step changes exactly one letter and every intermediate word must be…
Companies: Apple, Amazon, Fan, Meta +5
Bidirectional Search · Breadth-First Search · Hash Table · String
Companies: Apple
Regression & Statistical Modeling · Supervised Learning