InterviewDB
Experience
·
USA
Spaces Between Us: Justify Text to a Fixed Line Width
phone
Interview Experience
Round 1 - Coding Problem Given a list of words and a maximum line width W, format the words so that each line is exactly W characters wide using full justification. Extra spaces are distributed as evenly as possible from left to right. The last line is left-justified. Example Follow-ups How do you distribute spaces when the extra count is not divisible evenly by the number of gaps? A line with a single word — how do you pad it correctly? What changes if you must right-justify the last line inste…
Full Details
🔒
Unlock all Glean questions
Full insider details, leaked discussions, and candidate experiences.
Get full access — $100 a year, unlimited accessAbout This Question
This is a candidate experience report from a glean interview during the phone round.
It covers the following topics: System Design, Coding, Phone, Onsite .
Topics
More Glean Interview Questions
1p3a
fulltime machine learning onsite interview experience at glean sf office
1p3a
glean software engineer tech phone screen interview experience
InterviewDB
Glean SWE Phone - Array Compression
1p3a
Glean Backend Engineer Interview Experience and Rejection Discussion
1p3a
Glean Tech Phone Screen Problem: Document Processing and Node Allocation