Apple phone interview
Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-02-03Added By Anonymous
Source: Link
I had an interview with Apple a few weeks ago. For the 30 min phone interview we discussed about my background and current role for about 5 minutes. After that we proceded to coderpad for our phone interview. I was aked to rotate an array right k times.
Was super strait forward, did code challange in about 15 min, looked for edge cases and gave an answer. time complexity was O(n) since I had to remove from first index, shift all left then append to end of array. No extra memory so O(1) space.