Google Interview Experience

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

Company: Google
Role: unknown
Interview Stage: Onsite
Location: unknown
Year: unknown

Original Post Content:

Phone Screen Round:
Min Time for n friends to reach m cafes, m and n are given as bidirectional graph nodes, and unit distance needs unit time to travel for all friends.

Onsite rounds:

1) Calculator to do add, sub, divide, modulus, multiply and power operations
add(5, sub(pow(7, 2), mul(3, 2)))

2) Calculator to reduce expression
a + a * 4 - b + c + 3 * b
5a + 2b + c

3) A question solved using prefix sum and optimized using segment tree and lazy propagation I can't remember exactly.

Comments