Google Interview Round (L4-Europe) | Reject

599
Dec 03, 2024
Dec 03, 2024

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 (3)