Text Justification at Atlassian
Hard50.4% acceptance
This problem has 62.5% frequency at Atlassian.
Problem Description
Given an array of strings `words` and a width `maxWidth`, format the text such that each line has exactly `maxWidth` characters and is fully (left and right) justified. You should pack your words in a greedy approach; that is, pack as many words as you can in each line. Pad extra spaces `' '` when...
Read full problem and hintsTopics
Also asked at 39 companies
More Atlassian Questions
Rank Teams by VotesMediumMerge IntervalsMediumHigh-Access EmployeesMediumMake Lexicographically Smallest Array by Swapping ElementsMediumMinimum Cost to Convert String IMedium
View all Atlassian questions