Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
I think the description is wrong:
For instance if you need to spread 11 spaces between 5 words, the theoretical number of spaces between each pair of words is 2.75, yielding a total number of used spaces of 2.75 - 5.5 - 8.75 - 11. Round to 2 - 5 - 8 -11 and the effective number of spaces in each block is 2 - 3 - 3 - 3.
I think 8.75 was meant to be 8.25. Isn’t it correct?
Yes, but no side effect here, still 8 when truncated ^^
Apart from typo above,
Misleading sentence below for JUSTIFY, no columns mentioned whatsoever
spread the remaining space evenly between words of the line so that all lines end on the same column
Should’ve just mentioned rounded down when allocating spaces between words for JUSTIFY instead of below
When necessary, round the numbers of spaces to their integer part.
The typo wasn’t present even in the version retrieved last Wednesday, so it must have been corrected before you posted your message.
Aside from that, I’ve edited the puzzle.