Google | L4 | Phone Screen
Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2025-01-07Added By Anonymous
Source: Link
🧭 Experience: unknown
✅ Outcome: unknown
💰 Compensation: unknown
📍 Location: unknown
🏢 Company: Google
🎓 Education: unknown
🎁 Benefits: unknown
📅 Offer Date: unknown
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.
✅ Outcome: unknown
💰 Compensation: unknown
📍 Location: unknown
🏢 Company: Google
🎓 Education: unknown
🎁 Benefits: unknown
📅 Offer Date: unknown
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.