Hello Leetcode. Would like to tell you all about my experience interviewing at Apple for UMC team.
Four 1 hour interviews, with an hour break after the first two.
Interview 1 - Coding w/ Manager + Engineer
* First question was a Java question. Gave me a base class thats a library and another class that extends the base class. Asked me if there was anything odd about the class.
* second question was similar to meeting rooms 2, but build out a method called bookApi(int id, int startTime, int endTime) that returns a boolean if we can book a room with id at the current timeslot
* own rating - no hire, this round was terrible because the manager was lowkey yelling at me during the Java question and I kind of froze up.
Interview 2 - Coding with another manager and engineer
* First question was Median of two sorted arrays
* gave the O(m + n) approach and could not get the optimal approach but was close
* Second question was a Java related question. Gave me a class MovieIterator that needed hasNext() and next() implemented. pretty standard
* own rating - soft hire but leading to no hire
break
Interview 3 - Coding with two engineers
* First question was create checkerboard in HTML/JS (was rusty but got a working solution)
* Extention of First Last Pos of Element in Sorted Array but instead of the first and last index the output should be how many occurences of the element there are.
* own rating - soft hire
Interview 4 - Coding with two engineers
* First question was a path finding question - given a list of obstacles and a 2d grid, start and end, return true if there exists a path
* follow up was return the actual path
* did simple DFS, interviewer was satisfied with it
* Second question was reverse linked list as a freebee, then Reverse nodes in K Group
* did the recursive method, interviewer did not ask me to optimize for space
* own rating - first strong hire rating
Good experience overall in terms of seeing some improvement in my interviewing skills, just need to keep grinding and I'll get there eventually. Hope this helps others that are interviewing at Apple. Happy to answer any questions to the best of my ability as well. Cheers!