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.
In fact you have to do more than just fill the gaps. You should add a few code before mapReducer.emitIntermediate(?, ?) and mapReducer.emit((?, ?)). The idea is that you have to map in some way to facilitate the reduce operation after. In fact reduce() exploits previously created dictionary (map) and performs checks to produce the final "reduced" dictionary.
Hope it's helpful!
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 →
In fact you have to do more than just fill the gaps. You should add a few code before mapReducer.emitIntermediate(?, ?) and mapReducer.emit((?, ?)). The idea is that you have to map in some way to facilitate the reduce operation after. In fact reduce() exploits previously created dictionary (map) and performs checks to produce the final "reduced" dictionary.
Hope it's helpful!