Java Visitor Pattern

  • + 8 comments

    Just solved: what an ordeal...

    Some random remarks:

    1. as already said, it was 80% about figuring out the author's own concept of what a tree is, 19% about building it, and 1% about the visitor pattern

    2. the single, plain and non-descriptive test case provided, along with the complexity of the assignment, turn this problem into a coding version of "trolling": the author seems to be more intersted in "showing off" than teaching anything.

    Compare this exercise with the (great IMHO) ones provided by Shafaet: short, and to the point.

    This one could find a place in a challenge, and even there it would be rather dishonest.

    I did it because I'm a completist, but I would rather give my 40 points back and sacrifice the time spent into it, just to have it removed from this section.