We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
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.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Java Visitor Pattern
You are viewing a single comment's thread. Return to all comments →
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.