Apple | SWE | Phone Screen. 1 & 2

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2024-10-01Added By Anonymous
Source: Link

First round:

1 2 3// Say you’re in charge of a particular set of servers at a biotech firm. Your job is to store DNA sequences from across the company. 4 5// These sequences 6 7// * Can be ~millions of characters long (and there are ~millions of them) 8// * Depend on the order, so GTA != GAT 9// * Consist only of the letters G, T, A, and C 10// * Can have repeats like GATGAT or even GGGGAAATTAAA... 11 12 13// Your management comes to you saying you’re using way too much storage on disk. 14// How would you reduce the amount of storage you’re using? 15 16 17 18 } 19 } 20} 21


Second Phone Screen:

1// Your previous Plain Text content is preserved below: 2 3// A 4// / \ 5// P C 6// / / \ 7// K A L 8 9// find(String name) -> list of direct reports and manager. this person reports to [] List<String>
Comments