Java Visitor Pattern

  • + 1 comment

    haha Im going to have to cite you on my github. After seeing your Java solutions its impossible to think of a cleaner way to implement.

    If you have time please elaborate on why using a long for result in the ProductOfRedNodesVisitor class passes all tests while using an int only passes the first test.

    I have cited you and I could probably figure it out, but I must admit after learning that the problem is poorly worded and doesnt really teach anything new, I copied your code. Please let me know if you would like me to cite your work with a name different than rshaghoulian.