Text Alignment

  • + 9 comments

    I (partly) shared your opinion after solving this, but a day later, after I thought a bit both about this task and your comment, I reckon you are kinda wrong. Why?

    Experienced programmer or any smart person can do this task under 5 minutes using one of two distincly different approaches: either you just cp every print in all combinations, and then just delete wrong combinations. This approach gives solution quite fast, but is otherwise totally meaningless and anybody who choses this approach is really wasting his or hers time.

    Other approach is to try to solve it, and I reckon that any experienced programmer or any smart person can solve this task in under three tries for whole task (I needed three, and I really wasn't trying hard).

    Today whan dot printers are part of the past, tasks like this and API for position adjusting strings is kinda obsolete, but you are not given task to write this program from scratch, which WOULD be waste of time for sure, but you are given task to position one of three functions in under ten places, which can be done in under five tries if some logic is applied.

    And that is the whole reason for this task - can person apply some logic, or is person able to do all permutations, if applying logic is too tedious or too hard. :)