Given a single-line text string and a maximum width value, write the function 'string justify(string text, int maxWidth)' that formats the input text using full-justification, i.e., extra spaces on each line are equally distributed between the words; the first word on each line is flushed left and the last word on each line is flushed right.
Engineer Interview Questions
844,557 engineer interview questions shared by candidates
In mgr round, "What would you do if there is a member in your team, who is not willing to share the knowledge or information that can help you resolve the issues? Have you experienced this in the past?"
Find indices start and end for a particular value in a sorted integer array with duplicates
Design a baseband receiver from scratch
What are the steps to connect to a database?
Personal questions, technical about the education you mastered. GD can be one procedure
Are you comfortable with all work location
How to find 2 missing numbers in N numbers, which consists of numbers 1 - N without duplicate?
Sketch the voltage across a capacitor when charged by a constant current source
What's your opinion of a well-designed product and why?
Viewing 2011 - 2020 interview questions