I have implemented this solution in Go in this PR: https://github.com/RyanFehr/HackerRank/pull/239 You guys might want to update the java solution to match. :)
I have implemented this solution in Go in this PR: #239
You guys might want to update the java solution to match. :)