interview-preparation / what-we-do

0 stars 8 forks source link

[Hard] interview questions #25 #178

Open rygh4775 opened 4 years ago

rygh4775 commented 4 years ago

Word Rectangle: Given a list of mill ions of words, design an algorithm to create the largest possible rectangle of letters such that every row forms a word (reading left to right) and every column forms a word (reading top to bottom). The words need not be chosen consecutively from the list, but all rows must be the same length and all columns must be the same height.