Skip to main content

Apple Interview Questions

Review this list of 145 Apple interview questions and answers verified by hiring managers and candidates.
  • Apple logoAsked at Apple 
    2 answers

    "In 2019, I was given a very important problem to solve. In a team of 3 we had to build a mobility assist device. The customer segment we would go for was something we could decide. The project was very close to me as I had lost someone I loved because of cancer and I saw how reduced mobility was a huge pain point in not being able to do physical activities. My team could only think of elderly people as the main target market. As the Head of Product what I did was: 1) I helped them dive even d"

    Soumya S. - "In 2019, I was given a very important problem to solve. In a team of 3 we had to build a mobility assist device. The customer segment we would go for was something we could decide. The project was very close to me as I had lost someone I loved because of cancer and I saw how reduced mobility was a huge pain point in not being able to do physical activities. My team could only think of elderly people as the main target market. As the Head of Product what I did was: 1) I helped them dive even d"See full answer

    Product Manager
    Behavioral
    +3 more
  • Apple logoAsked at Apple 
    34 answers
    +30

    "There is a faster approach that solves the problem in O(n) time: def find_duplicates(arr1, arr2): arr1 = set(arr1) res = [] for num in arr2: if num in arr1: res.append(num) return res `"

    Victor H. - "There is a faster approach that solves the problem in O(n) time: def find_duplicates(arr1, arr2): arr1 = set(arr1) res = [] for num in arr2: if num in arr1: res.append(num) return res `"See full answer

    Data Engineer
    Data Structures & Algorithms
    +2 more
  • Apple logoAsked at Apple 
    8 answers
    +5

    "A few months ago I joined a micro-services platform engineering team as their manager, at that time my team was struggling to deliver towards an upcoming production deadline for a customer facing product. Production date had been moved 5 times already and there were about 40% of product features which were remaining to be tested and signed off to move to production . I was made responsible to deliver the release of this product within the deadline and turnaround the software delivery throughput."

    Shuchi A. - "A few months ago I joined a micro-services platform engineering team as their manager, at that time my team was struggling to deliver towards an upcoming production deadline for a customer facing product. Production date had been moved 5 times already and there were about 40% of product features which were remaining to be tested and signed off to move to production . I was made responsible to deliver the release of this product within the deadline and turnaround the software delivery throughput."See full answer

    Software Engineer
    Behavioral
    +2 more
  • Apple logoAsked at Apple 
    5 answers
    +2

    "Should be able to charge the airpod case when pluged into energy. Should be able to charge when the airpod case has battery. Should be able to alert if the airpod case is out of battery. Should be able to sync with non-paired devices. Should be able to sync automatically with paired devices. Should be able to sync automatically with paired devices that are closer to the airpod. Should be able to switch the connection to a device answering a call. Should be able to pause during us"

    Daniel M. - "Should be able to charge the airpod case when pluged into energy. Should be able to charge when the airpod case has battery. Should be able to alert if the airpod case is out of battery. Should be able to sync with non-paired devices. Should be able to sync automatically with paired devices. Should be able to sync automatically with paired devices that are closer to the airpod. Should be able to switch the connection to a device answering a call. Should be able to pause during us"See full answer

    QA Engineer
    Behavioral
    +2 more
  • +1

    "Time taken: 25 minutes My approach: I would start by listing the use cases, what could be the length of cable needed, quantifying each and weight average those. The % make the assumption that it is what it represents the share in the total nb of iphone recharges. In fact total should be more than 100% because it not exclusive but for sake of simplicity let’s say it tops at 100%. \# In details: charging next to bed: 50%generally speaking there is a bedside table that is 80 cm high and the"

    Adaneir W. - "Time taken: 25 minutes My approach: I would start by listing the use cases, what could be the length of cable needed, quantifying each and weight average those. The % make the assumption that it is what it represents the share in the total nb of iphone recharges. In fact total should be more than 100% because it not exclusive but for sake of simplicity let’s say it tops at 100%. \# In details: charging next to bed: 50%generally speaking there is a bedside table that is 80 cm high and the"See full answer

    Product Manager
  • 🧠 Want an expert answer to a question? Saving questions lets us know what content to make next.

  • "Use Dutch National Flag Algorithm to solve the problem"

    Sireesha R. - "Use Dutch National Flag Algorithm to solve the problem"See full answer

    Software Engineer
    Data Structures & Algorithms
    +1 more
  • Apple logoAsked at Apple 
    52 answers
    +48

    "function twoSum(nums, target) { let complements = new Map(); for (let i = 0; i < nums.length; i++) { let diff = target - nums[i]; if (complements.has(diff)) { return [complements.get(diff), i]; } complements.set(nums[i], i); } return []; } console.log(twoSum([2, 7, 11, 15], 9)); `"

    Jean-pierre C. - "function twoSum(nums, target) { let complements = new Map(); for (let i = 0; i < nums.length; i++) { let diff = target - nums[i]; if (complements.has(diff)) { return [complements.get(diff), i]; } complements.set(nums[i], i); } return []; } console.log(twoSum([2, 7, 11, 15], 9)); `"See full answer

    Software Engineer
    Data Structures & Algorithms
    +5 more
  • Apple logoAsked at Apple 
    1 answer

    "Situation - A time I had to think “outside of the box” was while I was at Google working on hotel solutions for smart displays. Smart displays are mutli-modal meaning they accommodate both touch and voice. I was given the task of leading the effort of scaling a new third party solution on top of our existing first party design system. However, the pandemic caused an unfortunate turn of events in that the needs of guests changed drastically and now needed a much more voice forward solution for"

    Ben G. - "Situation - A time I had to think “outside of the box” was while I was at Google working on hotel solutions for smart displays. Smart displays are mutli-modal meaning they accommodate both touch and voice. I was given the task of leading the effort of scaling a new third party solution on top of our existing first party design system. However, the pandemic caused an unfortunate turn of events in that the needs of guests changed drastically and now needed a much more voice forward solution for"See full answer

    Product Designer
    Behavioral
  • Apple logoAsked at Apple 
    2 answers

    "First of all, stack and heap memory are abstraction on top of the hardware by the compiler. The hardware is not aware of stack and heap memory. There is only a single piece of memory that a program has access to. The compiler creates the concepts of stack and heap memory to run the programs efficiently. Programs use stack memory to store local variables and a few important register values such as frame pointer and return address for program counter. This makes it easier for the compiler to gene"

    Stanley Y. - "First of all, stack and heap memory are abstraction on top of the hardware by the compiler. The hardware is not aware of stack and heap memory. There is only a single piece of memory that a program has access to. The compiler creates the concepts of stack and heap memory to run the programs efficiently. Programs use stack memory to store local variables and a few important register values such as frame pointer and return address for program counter. This makes it easier for the compiler to gene"See full answer

    Software Engineer
    Data Structures & Algorithms
    +2 more
  • Apple logoAsked at Apple 
    Add answer
    Video answer for 'Find the median of two sorted arrays.'
    Software Engineer
    Data Structures & Algorithms
    +4 more
  • Apple logoAsked at Apple 
    17 answers
    +12

    " class ListNode: def init(self, val=0, next=None): self.val = val self.next = next def has_cycle(head: ListNode) -> bool: pass # your code goes here if head is None: return False previousNodes = set() iter = head while iter: if iter.val in previousNodes: return True previousNodes.add(iter.val) iter = iter.next; return False debug your code below node1 = ListNode(1) node2 = ListNode(2) n"

    Cagdas A. - " class ListNode: def init(self, val=0, next=None): self.val = val self.next = next def has_cycle(head: ListNode) -> bool: pass # your code goes here if head is None: return False previousNodes = set() iter = head while iter: if iter.val in previousNodes: return True previousNodes.add(iter.val) iter = iter.next; return False debug your code below node1 = ListNode(1) node2 = ListNode(2) n"See full answer

    Software Engineer
    Data Structures & Algorithms
    +4 more
  • Apple logoAsked at Apple 
    12 answers
    +8

    " function findPrimes(n) { if (n 1; i--) { if (num % i === 0) { notPrimes.add(num); return false; } } return true; } for (let i = 2; i 5 && !notPr"

    Jeff S. - " function findPrimes(n) { if (n 1; i--) { if (num % i === 0) { notPrimes.add(num); return false; } } return true; } for (let i = 2; i 5 && !notPr"See full answer

    Data Engineer
    Data Structures & Algorithms
    +4 more
  • Apple logoAsked at Apple 
    1 answer

    "Situation - A time when I worked well on a team was while I was working with the larger team at Blade to do the redesign before their IPO. Essentially, we had a month to launch a redesign (both visual and UX) of the entire project Task - I was tasked to direct all design efforts and strategy for the mobile and web experience on blade - being a lead in the trifecta group. Action - Through effective teamwork, we all led strategy and championed our areas of product, design and engineering. As a"

    Ben G. - "Situation - A time when I worked well on a team was while I was working with the larger team at Blade to do the redesign before their IPO. Essentially, we had a month to launch a redesign (both visual and UX) of the entire project Task - I was tasked to direct all design efforts and strategy for the mobile and web experience on blade - being a lead in the trifecta group. Action - Through effective teamwork, we all led strategy and championed our areas of product, design and engineering. As a"See full answer

    Product Designer
    Behavioral
    +1 more
  • Apple logoAsked at Apple 
    2 answers
    Video answer for 'Given the root of a binary tree of integers, return the maximum path sum.'

    "\# Definition for a binary tree node. class TreeNode: def init(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def maxPathSum(self, root: TreeNode) -> int: self.max_sum = float('-inf')"

    Jerry O. - "\# Definition for a binary tree node. class TreeNode: def init(self, val=0, left=None, right=None): self.val = val self.left = left self.right = right class Solution: def maxPathSum(self, root: TreeNode) -> int: self.max_sum = float('-inf')"See full answer

    Software Engineer
    Data Structures & Algorithms
    +4 more
  • Apple logoAsked at Apple 
    3 answers

    "It is very easy to shy away and not make a decision because you might feel the right information is not there to make a decision While dealing with ambiguity it is essential to remain Calm. And Establish what it is you want to achieve by asking a lot of questions to the necessary stakeholders Access the risk, analyze the data at hand, ask the right questions, and be very clear and concise in decision-making"

    Satish murthy D. - "It is very easy to shy away and not make a decision because you might feel the right information is not there to make a decision While dealing with ambiguity it is essential to remain Calm. And Establish what it is you want to achieve by asking a lot of questions to the necessary stakeholders Access the risk, analyze the data at hand, ask the right questions, and be very clear and concise in decision-making"See full answer

    Product Manager
    Behavioral
    +1 more
  • Apple logoAsked at Apple 
    5 answers
    +2

    "def calc(expr): ans = eval(expr) return ans your code goes debug your code below print(calc("1 + 1")) `"

    Sarvesh G. - "def calc(expr): ans = eval(expr) return ans your code goes debug your code below print(calc("1 + 1")) `"See full answer

    Software Engineer
    Data Structures & Algorithms
    +3 more
  • Apple logoAsked at Apple 
    3 answers

    "Lyft mission. What do we mean by engagement here? We want higher rides , not just time spent on app. What does social mean? When we create interactions between riders. Lyft line is social. Ideas: Idea: Can we maintain interactions between riders by letting them ride with same people again? Benefit: Increases repeat rides. Idea: Giving riders an option to request a driver they rode with. Benefits: Increases social interaction between riders and drivers. Increases retention and # rides as"

    M N. - "Lyft mission. What do we mean by engagement here? We want higher rides , not just time spent on app. What does social mean? When we create interactions between riders. Lyft line is social. Ideas: Idea: Can we maintain interactions between riders by letting them ride with same people again? Benefit: Increases repeat rides. Idea: Giving riders an option to request a driver they rode with. Benefits: Increases social interaction between riders and drivers. Increases retention and # rides as"See full answer

    Product Design
    System Design
  • Apple logoAsked at Apple 
    2 answers

    "Factors Affecting Latency-> Hash function efficiency: A good hash function minimizes collisions. Load factor: Higher load factors increase collisions, leading to higher latency. Collision resolution strategy:Chaining: Latency depends on the linked list/tree traversal. Open addressing: Latency depends on probing (linear, quadratic, or double hashing). Size of the hashmap: Larger hashmaps generally reduce collision chances but may involve additional memory latency. **"

    Rajeev K. - "Factors Affecting Latency-> Hash function efficiency: A good hash function minimizes collisions. Load factor: Higher load factors increase collisions, leading to higher latency. Collision resolution strategy:Chaining: Latency depends on the linked list/tree traversal. Open addressing: Latency depends on probing (linear, quadratic, or double hashing). Size of the hashmap: Larger hashmaps generally reduce collision chances but may involve additional memory latency. **"See full answer

    Engineering Manager
    Data Structures & Algorithms
  • Apple logoAsked at Apple 
    4 answers

    "i am a fresher"

    Akash A. - "i am a fresher"See full answer

    Software Engineer
    Behavioral
  • Apple logoAsked at Apple 
    7 answers
    +4

    "public static void sortBinaryArray(int[] array) { int len = array.length; int[] res = new int[len]; int r=len-1; for (int value : array) { if(value==1){ res[r]= 1; r--; } } System.out.println(Arrays.toString(res)); } `"

    Nitin P. - "public static void sortBinaryArray(int[] array) { int len = array.length; int[] res = new int[len]; int r=len-1; for (int value : array) { if(value==1){ res[r]= 1; r--; } } System.out.println(Arrays.toString(res)); } `"See full answer

    Software Engineer
    Data Structures & Algorithms
    +1 more
Showing 41-60 of 145