Google Interview Round (L4-Europe) | Reject

Difficulty: EASYCategory: InterviewExperienceFrequency: 1Asked On 2024-12-03Added By Anonymous
Source:Ā Link
🧭 Experience: unknown
āœ… Outcome: Reject
šŸ’° Compensation: unknown
šŸ“ Location: Europe
šŸ¢ Company: Google
šŸŽ“ Education: unknown
šŸŽ Benefits: unknown
šŸ“… Offer Date: unknown

Technical Questions:
1) Given an array of int, make the array values more compressed and starting from 1 (while keeping the order between the elements). [-4, -30, 5, 7] -> [2, 1, 3, 4]
2) Given a string, and a page width, return minimum number of lines we can fit the string in that page size. (while making sure single word doesn't overflow unless it has to)
2.2) Given 2 strings, and a page width, we want to put those 2 strings in a format of a table. What is the width of the first column that gives us the minimum number of lines.
Comments