Question on Solution for 17.11 The Pretty Print Problem

#1

Hi, my first post on here so please bear with me. I am using EPI Java version 1.6.1. On p.303 (problem 17.11) the sample solution appears to always place the ith word in a new (added) row and try to pull more words from the previous row into the front of ith row to minimize the overall messiness. But it did not appear to consider the fact that maybe the ith word can fit in to the last existing row so no new row is needed, as demonstrated by Figures 17.14 (a) and (b). Any insight that you may offer is greatly appreciated. Thanks.

0 Likes

#2

Hi @howardchen416,

Many thanks for your question, and I am not very sure what do you mean about the problem of the solution. Would you mind to check our EPI Judge page (https://github.com/adnanaziz/EPIJudge) where we provide test data, test framework, and solutions there for you to verify that.

0 Likes