Apple onsite
- Result
- No Offer
- Posted
- 5 Oct 2022
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.
How it went
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.
Questions asked (2)
- 01
Course Schedule
Data Structures & Algorithms · Medium
Open the problemThere are a total of
numCoursescourses you have to take, labeled from0tonumCourses - 1. You are given an arrayprerequisiteswhereprerequisites[i] = [ai, bi]indicates that you must take coursebifirst if you want to take courseai. For example, the pair[0, 1]indicates that you have to take course 1 before course 0. Returntrueif you can finish all courses. Otherwise, returnfalse. - 02
Pacific Atlantic Water Flow
Data Structures & Algorithms · Medium
Open the problemGiven an
m x ninteger matrixheightsrepresenting 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.