Apple | SWE | Phone Screen. 1 & 2

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

Company: Apple
Role: SWE
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

First round:
// 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.

// These sequences
// * Can be ~millions of characters long (and there are ~millions of them)
// * Depend on the order, so GTA != GAT
// * Consist only of the letters G, T, A, and C
// * Can have repeats like GATGAT or even GGGGAAATTAAA...


// Your management comes to you saying you’re using way too much storage on disk.
// How would you reduce the amount of storage you’re using?

Second Phone Screen:
// Your previous Plain Text content is preserved below:

// A
// / \
// P C
// / / \
// K A L

// find(String name) -> list of direct reports and manager. this person reports to [] List<String>

Comments