且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

[CareerCup] 18.13 Largest Rectangle of Letters

更新时间:2022-09-16 19:25:38

18.13 Given a list of millions 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.

本文转自博客园Grandyang的博客,原文链接:[CareerCup] 18.13 Largest Rectangle of Letters,如需转载请自行联系原博主。