Apple onsite

apple logo
apple
No Offer
October 5, 20220 reads

Summary

I recently completed an onsite interview at Apple, which included two specific LeetCode problems and discussions on computer science fundamentals. Although I ultimately received an offer from Google, my experience at Apple was valuable.

Full Experience

During my onsite interview at Apple, I was presented with two coding challenges: Course Schedule (LeetCode 207) and Pacific Atlantic Water Flow (LeetCode 417). Beyond the coding, a significant portion of the interview involved in-depth discussions on core computer science fundamentals and various debugging methodologies. While I ultimately accepted an offer from Google, I gained valuable insights into Apple's technical interviewing process through this experience.

Interview Questions (2)

Q1
Course Schedule
Data Structures & AlgorithmsMedium

There are a total of numCourses courses you have to take, labeled from 0 to numCourses - 1. You are given an array prerequisites where prerequisites[i] = [ai, bi] indicates that you must take course bi first if you want to take course ai. For example, the pair [0, 1] indicates that you have to take course 1 before course 0. Return true if you can finish all courses. Otherwise, return false.

Q2
Pacific Atlantic Water Flow
Data Structures & AlgorithmsMedium

Given an m x n integer matrix heights representing the height of each unit cell in a continent, your task is to find a list of grid coordinates (row, col) where water can flow to both the Pacific and Atlantic oceans. Water can flow from a cell to an adjacent cell if the adjacent cell has a height less than or equal to the current cell's height. Both the Pacific and Atlantic oceans touch the border of the continent.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!