Google | Phone | SWE-India
February 8, 2022
I had my telephonic round today.(45 Min)
Question's were:
Given text and the width of a page, find how many lines the text would take on that page.
I gave the Solution (Similar to Text Justification on Leetcode)
https://leetcode.com/problems/text-justification/description/)
Given a text data that you’d like to put into a two-column table on a fixed-width page, find the best column size that minimizes the overall height of the table.
--> This was the follow up Question.(I gave the solution Using Binary Search)