Apple
26 interview experiences from candidates.
Apple | Software Engineer (Mid Level) | Coding | Phone Screen
Software Engineer
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree. According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between two nodes p and q as the lowest n...
Apple | Embedded software engineer (Mid Level) | Coding | Onsite
Embedded software engineer
c include <stdio.h include <string.h include <stdlib.h include <ctype.h // A palindrome is a string that reads the same forwards and backwards, such as "x4T4x". A // "weak palindrome" is a palindrome if you ignore white...
Design a Rate Limiter
Software Engineer
Design a Rate Limiter Classic leetcode problem asked.
Apple | SDET (Senior) | Coding | Phone Screen
SDET
Given an integer array nums and an integer k, return the k most frequent elements. You may return the answer in any order.
Apple | Backend Software Engineer (Mid Level) | Coding | Phone Screen
Backend Software Engineer
Design a data structure that supports push(), pop(), peek(), peekMax(), popMax(). Follow up: Optimize popMax().
Apple | Senior Software Engineer (Senior) | System Design | Onsite
Senior Software Engineer
Take in a sports event and send it to end user in near real time
Apple | Senior Software Engineer (Senior) | Coding | Onsite
Senior Software Engineer
Coding 1: Find islands problem from Leetcode Coding 2: LRU cache extension: implement with linked list
Apple | Senior Software Engineer (Senior) | Coding | Phone Screen
Senior Software Engineer
Merge overlapping intervals
Apple | Software Developer (Mid Level) | Coding | Onsite
Software Developer
You are given memory blocks of size 1 like balls in bucket write a function that allocate memory i.e. return a block of memory and free memory block i.e. adds that memory block back to bucket. For first part assume we al...
Apple | Software Engineer (Intern) | Coding | Phone Screen
Software Engineer
Differential Privacy Encoding Question for Apple Siri Team. ML/AI. For some user data, write a function that mimics differential privacy. IE. does this insert enough 'noise' to protect user data and maintain their privac...
Apple | Security Site Reliability Engineer | Coding | Phone Screen
Security Site Reliability Engineer
Write a function that takes in byte[] as an input of structure: {0, 0, 0, 4, 1, 2, 3, 4 } size | actualMessage And passes the byte[] to some other function. But the size of the message can be more than the length of the...
Apple | Senior Software Engineer | System Design | Onsite
Senior Software Engineer
Design social media app end to end. focus on live feed and ranking
Apple | Senior Software Engineer | Coding | Phone Screen
Senior Software Engineer
Given an array of k lists, each list is sorted in ascending order. Merge all the lists into one sorted list and return it.
Apple | New Grad SWE IS&T | Coding | Phone Screen
New Grad SWE IS&T
First 30 minutes was general coding principles depending on the language you choose will ask questions dependent on that. For instance, what are the 4 pillars of object oriented programming. Then move onto 30 min leetcod...
Apple | SWE Intern | Coding | Phone Screen
SWE Intern
I was asked basic OS questions about locks and virtualization. I also went through some of my projects. Then, I had to write a C function where I was given an integer and needed to determine how many 1s were in its binar...
Apple | Software Engineer | Coding | Onsite
Software Engineer
This is more sort of low level design coding round. Problem Statement Design a payment system that allows transferring money from one user to another user . The system should model the core components required for a peer...
Apple | Software Engineer | Coding | Onsite
Software Engineer
Problem Statement: You are working for a postal service company. The postal network consists of post offices connected by routes. Each route has a distance (in miles) associated with it. You are given: 1. n: the total nu...
Apple | Senior software | Coding | Phone Screen
Senior software
1) Leetcode problem 380 https://leetcode.com/problems/insert delete getrandom o1/description/ 2) Maximum product subarray problem
Apple | Software Engineering Intern, GPU Compilers | Coding | Onsite
Software Engineering Intern, GPU Compilers
This was a combination of coding and LLVM IR optimization. The coding one was LRU Cache and the llvm question is written below. LLVM IR question Optimize as much as possible: define i32 @kernel(i32 %p, i32 %n, i1 %flag)...
Apple | Software Engineering Intern, GPU Compilers | Coding | Phone Screen
Software Engineering Intern, GPU Compilers
This was a combination of coding and trivia. The coding question was Course Schedule II but reworded in terms of legal GPU operations. The trivia questions: Why is a single IR insufficient for a modern optimizing compile...