Google | Phone | SWE-India
Anonymous User
2519

I had my telephonic round today.(45 Min)

Question's were:

  1. 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/)

  1. 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)

Comments (4)