Google | L4 | Phone Screen

Difficulty: MEDIUMCategory: InterviewExperienceFrequency: 1Asked On 2025-01-07Added By Anonymous
Source: Link

Company: Google
Role: L4
Interview Stage: Phone Screen
Location: unknown
Year: unknown

Original Post Content:

I was asked the following question.

There is a fixed size array of integers. And we are given a number S. We need to pick a number x from integers (doesn't have to be in the array) and truncate each array integer to largest optimal number such that sum of array after truncations is storage limit S.

Comments