Round 1
Questions:
-
Given an array of int, make the array values more compressed and starting from 1 (while keeping the order between the elements). Input:
[-4, -30, 5, 7]
Output:[2, 1, 3, 4]
-
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.
Candidate's Approach
No approach provided.
Interviewer's Feedback
No feedback provided.