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.
Think carefully about the keys used for the map; you can easily create intermediate values which already indicate the sets each integer appears in - no need to do this in the reduce.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Relational MapReduce Patterns #1 - Intersections
You are viewing a single comment's thread. Return to all comments →
Think carefully about the keys used for the map; you can easily create intermediate values which already indicate the sets each integer appears in - no need to do this in the reduce.