• + 0 comments

    Although R and S are mentioned as set, it would still be better to explicitly state that the numbers for each of the collections won't be repeated. Also, line 176: "intermediate.put(key,temp);" (in Java code) is confusing, please remove it from the template. Rest the code is elegant, beautiful and self-explainatory to say the least. Kudos to team Hackerrank for introducing such a challenge. :)